import type { IncomingHttpHeaders } from 'node:http'; import type { CookieOptions } from 'express'; import type { Config } from '../../../types'; import type { Repository } from '../../domain/repository'; export interface RendererOptions { action?: string; conf: Config; headers: IncomingHttpHeaders; ip: string; name: string; parameters: Record; version: string; omitHref?: boolean; } export interface GetComponentResult { status: number; headers?: Record; cookies?: Array<{ name: string; value: any; options?: CookieOptions; }>; response: { data?: any; type?: string; code?: string; error?: unknown; version?: string; html?: string; requestVersion?: string; name?: string; details?: { message: string; stack: string; originalError: unknown; }; missingPlugins?: string[]; missingDependencies?: string[]; }; } export declare const stream: unique symbol; export default function getComponent(conf: Config, repository: Repository): (options: RendererOptions, cb: (result: GetComponentResult) => void) => Promise;