astro-ghostcms/.pnpm-store/v3/files/e5/6682bb7905c23ad5b982bc080d9...

21 lines
1.1 KiB
Plaintext

import type { SSRResult } from '../../../../@types/astro.js';
import type { ComponentSlots } from '../slot.js';
import type { AstroComponentFactory, AstroFactoryReturnValue } from './factory.js';
import type { RenderDestination } from '../common.js';
type ComponentProps = Record<string | number, any>;
declare const astroComponentInstanceSym: unique symbol;
export declare class AstroComponentInstance {
[astroComponentInstanceSym]: boolean;
private readonly result;
private readonly props;
private readonly slotValues;
private readonly factory;
private returnValue;
constructor(result: SSRResult, props: ComponentProps, slots: ComponentSlots, factory: AstroComponentFactory);
init(result: SSRResult): Promise<AstroFactoryReturnValue>;
render(destination: RenderDestination): Promise<void>;
}
export declare function createAstroComponentInstance(result: SSRResult, displayName: string, factory: AstroComponentFactory, props: ComponentProps, slots?: any): AstroComponentInstance;
export declare function isAstroComponentInstance(obj: unknown): obj is AstroComponentInstance;
export {};