import type { FastifyListenOptions, FastifyServerOptions, FastifyInstance } from 'fastify'; export type StartOptions = Omit; export interface Server extends FastifyInstance { start: (options?: StartOptions) => Promise; } export interface CreateServerOptions { /** * The prefix for all routes. Defaults to `/`. */ apiRootPath?: string; /** * Logger instance or options. */ logger?: FastifyServerOptions['logger']; /** * Options for the fastify server instance. * Omitting logger here because we move it up. */ fastifyServerOptions?: Omit; /** * Override the glob used to discover functions. * Defaults to: "dist/functions/**\/*.{ts,js}" */ discoverFunctionsGlob?: string | string[]; /** * Customise the API server fastify plugin before it is registered */ configureApiServer?: (server: Server) => void | Promise; /** * Whether to parse args or not. Defaults to `true`. */ parseArgs?: boolean; } type DefaultCreateServerOptions = Required & { fastifyServerOptions: FastifyServerOptions; }>; export declare const DEFAULT_CREATE_SERVER_OPTIONS: DefaultCreateServerOptions; export type ResolvedOptions = Required & { fastifyServerOptions: FastifyServerOptions; apiPort: number; apiHost: string; }>; export declare function resolveOptions(options?: CreateServerOptions, args?: string[]): Required & { fastifyServerOptions: FastifyServerOptions; apiPort: number; apiHost: string; }>; export {}; //# sourceMappingURL=createServerHelpers.d.ts.map