import type { ComponentPresentation } from '../../../genui/index.js'; import type { ReactComponentRegistry } from './react-registry.js'; export { createReactComponentRegistry, type ReactComponentRegistry } from './react-registry.js'; export interface CaptureOptions { width?: number; height?: number; timeoutMs?: number; } export interface CaptureAdapter { images(html: readonly string[], options: CaptureOptions): Promise; pdf(html: readonly string[], options: CaptureOptions): Promise; } export interface ServerRenderOptions extends CaptureOptions { rowsPerPage?: number; capture?: CaptureAdapter; } export interface ReactServerRendererOptions { registry: ReactComponentRegistry; /** Trusted app CSS, or a trusted filesystem path; never supply user CSS. */ stylesheet?: string | { path: string; }; theme?: string; capture?: CaptureAdapter; } export declare function boundedCaptureOptions(options: CaptureOptions): Required; export declare function createReactServerRenderer(options: ReactServerRendererOptions): { html: (presentation: ComponentPresentation) => Promise; images(presentation: ComponentPresentation, settings?: ServerRenderOptions): Promise[]>; pdf(presentation: ComponentPresentation, settings?: ServerRenderOptions): Promise>; }; //# sourceMappingURL=server.d.ts.map