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'] | FastifyServerOptions['loggerInstance']; /** * 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; /** The port to listen on. Defaults to what's configured in cedar.toml */ apiPort?: number; /** The host to bind to. Defaults to what's configured in cedar.toml */ apiHost?: string; } type DefaultCreateServerOptions = Required & { fastifyServerOptions: FastifyServerOptions; }>; export declare const getDefaultCreateServerOptions: () => DefaultCreateServerOptions; export declare function resolveOptions(options?: CreateServerOptions, args?: string[]): Required & { fastifyServerOptions: FastifyServerOptions; }>; export {}; //# sourceMappingURL=createServerHelpers.d.ts.map