import type { DaemonConfig } from "./config.js";
import type { SessionEvent } from "./server-session.js";
export { corsHeaders, isTrustedOrigin } from "./server-http.js";
export { closeAfterActiveTasks, resolveDaemonMaxActiveSummaries } from "./server-runtime.js";
export declare function resolveDaemonListenHost(env: Record<string, string | undefined>): string;
export declare function buildHealthPayload(importMetaUrl?: string): {
    ok: boolean;
    pid: number;
    version: string;
};
export declare function runDaemonServer({ env, fetchImpl, config, port, signal, onListening, onSessionEvent, }: {
    env: Record<string, string | undefined>;
    fetchImpl: typeof fetch;
    config: DaemonConfig;
    port?: number;
    signal?: AbortSignal;
    onListening?: ((port: number) => void) | null;
    onSessionEvent?: ((event: SessionEvent, sessionId: string) => void) | null;
}): Promise<void>;
