import type { JobStore, ReportStore } from '../types/index.js';
interface ReportServerOptions {
    port?: number;
    /** 监听 host。默认 '127.0.0.1'(只允许本机访问,容器/远程场景看不到)。
     *  暴露到容器外 / 局域网用 '0.0.0.0'。也可走 OMK_REPORT_HOST 环境变量。 */
    host?: string;
    reportsDir?: string;
    analysesDir?: string;
    doctorsDir?: string;
    observationsDir?: string;
    jobsDir?: string;
    store?: ReportStore;
    jobStore?: JobStore;
}
interface ReportServer {
    start(): Promise<string>;
    stop(): Promise<void>;
    getUrl(): string | null;
}
export declare function formatListenError(p: number, err: unknown): Error | null;
export declare function createReportServer({ port, host: hostOption, reportsDir, analysesDir, doctorsDir, observationsDir, jobsDir, store, jobStore }?: ReportServerOptions): ReportServer;
export {};
//# sourceMappingURL=report-server.d.ts.map