Files
website/node_modules/astro/dist/runtime/server/render/component.d.ts
2024-05-06 17:15:30 -04:00

14 lines
869 B
TypeScript

import type { RouteData, SSRResult } from '../../../@types/astro.js';
import { type RenderInstruction } from './instruction.js';
import type { HTMLBytes } from '../escape.js';
import { type RenderInstance } from './common.js';
declare const needsHeadRenderingSymbol: unique symbol;
export type ComponentIterable = AsyncIterable<string | HTMLBytes | RenderInstruction>;
export declare function renderComponent(result: SSRResult, displayName: string, Component: unknown, props: Record<string | number, any>, slots?: any): Promise<RenderInstance>;
export declare function renderComponentToString(result: SSRResult, displayName: string, Component: unknown, props: Record<string | number, any>, slots?: any, isPage?: boolean, route?: RouteData): Promise<string>;
export type NonAstroPageComponent = {
name: string;
[needsHeadRenderingSymbol]: boolean;
};
export {};