import type { FastifyInstance, RouteHandlerMethod, RouteOptions } from 'fastify'; import type { ClientEntries, ClientModule } from './client.ts'; import type { RuntimeConfig } from './options.ts'; import type { ReplyDotHtmlFunction, ReplyDotRenderFunction } from './reply.ts'; import type { ClientRouteArgs, CreateRouteArgs } from './route.ts'; /** Renderer option interface for custom renderers */ export interface RendererOption { clientModule: string; createHtmlTemplateFunction(source: string): unknown; createHtmlFunction(source: string, scope: FastifyInstance, config: RuntimeConfig): ReplyDotHtmlFunction | Promise; createRenderFunction(client: ClientModule, scope: FastifyInstance, config: RuntimeConfig): Promise; createErrorHandler(args: ClientRouteArgs, scope: FastifyInstance, config: RuntimeConfig): NonNullable | Promise>; createRoute(args: CreateRouteArgs, scope: FastifyInstance, config: RuntimeConfig): void | Promise; createRouteHandler(args: ClientRouteArgs, scope: FastifyInstance, config: RuntimeConfig): RouteHandlerMethod | Promise; prepareClient(entries: ClientEntries, scope: FastifyInstance, config: RuntimeConfig): Promise; } //# sourceMappingURL=renderer.d.ts.map