import { type App } from "../core/app.js";
export type ServeConfig = {
    httpAddr?: string;
    httpsAddr?: string;
    showStartBanner?: boolean;
    allowedOrigins?: string[];
    certificateDomains?: string[];
    maxRequestBodySize?: number;
};
export declare function resolveServeAssetPath(baseDir: string, relativeCandidates: string[]): string;
export declare function buildServeHandler(app: App, config?: ServeConfig): (req: Request, server?: unknown) => Promise<Response>;
export declare function serve(app: App, config?: ServeConfig): ReturnType<typeof Bun.serve>;
export declare function serveAsync(app: App, config?: ServeConfig): Promise<ReturnType<typeof Bun.serve>>;
export declare function unsupportedAutomaticHTTPSError(): Error;
