import { AuthConfig } from './server/auth';
import { type WebuiPortAutoDirection } from './server/port-selection';
import { HttpServerCore } from './server/server-core';
import './tools/builtins';
export type ServerOptions = {
    port?: number;
    host?: string;
    mode?: 'dev' | 'prod';
    certsDirAbs?: string;
    startBackendDriver?: boolean;
    returnAfterListen?: boolean;
    strictPort?: boolean;
    portAutoDirection?: WebuiPortAutoDirection;
};
export type StartedServer = {
    httpServer: HttpServerCore;
    httpsServer?: HttpServerCore;
    auth: AuthConfig;
    host: string;
    urlHost: string;
    port: number;
    httpsPort?: number;
    httpsUrlHost?: string;
    mode: 'dev' | 'prod';
};
export declare function startServer(opts?: ServerOptions): Promise<StartedServer>;
