lingjing/node_modules/next/dist/server/app-render/render-css-resource.d.ts
2026-02-23 09:51:43 +00:00

15 lines
721 B
TypeScript

import type { CssResource } from '../../build/webpack/plugins/flight-manifest-plugin';
import type { AppRenderContext } from './app-render';
import type { PreloadCallbacks } from './types';
/**
* Abstracts the rendering of CSS files based on whether they are inlined or not.
* For inlined CSS, renders a <style> tag with the CSS content directly embedded.
* For external CSS files, renders a <link> tag pointing to the CSS file.
*/
export declare function renderCssResource(entryCssFiles: CssResource[], ctx: AppRenderContext, preloadCallbacks?: PreloadCallbacks): import("react").DetailedReactHTMLElement<{
key: number;
nonce: string | undefined;
precedence: string;
href: string;
}, HTMLElement>[];