import type { FastifyError, FastifyInstance, FastifyReply, FastifyRequest } from 'fastify'; import type { RuntimeConfig } from '@fastify/vite'; import type { ContextInit } from './types/context.ts'; import type { CreateFactory, KeyedRoute, VueRouteDefinition } from './types/route.ts'; interface ClientEntries { ssr: ClientModule; [key: string]: unknown; } interface ClientModule { routes: KeyedRoute[] | Promise; create: CreateFactory | Promise<{ default: CreateFactory; }>; context: ContextInit | Promise; } export declare function prepareClient(entries: ClientEntries, _scope?: FastifyInstance, _config?: RuntimeConfig): Promise; export declare function createErrorHandler(_: unknown, _scope: FastifyInstance, config: RuntimeConfig): (error: FastifyError, req: FastifyRequest, reply: FastifyReply) => Promise; interface CreateRouteArgs { client: ClientModule & { routes: KeyedRoute[]; create: CreateFactory; context: ContextInit; }; errorHandler?: (error: FastifyError, req: FastifyRequest, reply: FastifyReply) => unknown; route: VueRouteDefinition; } export declare function createRoute({ client, errorHandler, route }: CreateRouteArgs, scope: FastifyInstance, config: RuntimeConfig): Promise; export {}; //# sourceMappingURL=routing.d.ts.map