import { type FetchHolder } from "./egress/GlobalFetchLock.js"; import type { HandlerRegistration } from "./handlers/HandlerRegistration.js"; /** The process around the executor: where configuration comes from, where lines go, how it ends. */ export interface ServeProcess { readonly env: Readonly>; readonly stdout: (line: string) => void; readonly stderr: (line: string) => void; readonly exit: (code: number) => void; readonly onSignal: (signal: "SIGTERM" | "SIGINT" | "SIGHUP", handler: () => void) => void; /** Seals the global `fetch` so only the guarded one can reach the network. */ readonly lockFetch: () => void; } /** The real process; the holder of `fetch` is the global object unless a test hands in another. */ export declare function nodeProcess(fetchHolder?: FetchHolder): ServeProcess; /** * The process entry the container runs, in the order that keeps secrets * unread until the host is known to be fit to hold them: configuration from * the environment; the global fetch sealed; the host posture, verified or * refused; the secrets, from mounted files (or, outside production, * variables); the executor with its evidence chains restored from the * journal; the listener. Every refusal to start names a variable or a * check, never a value. `SIGHUP` re-reads the secret files; `SIGTERM` and * `SIGINT` close the listener, persist the chain heads, and exit. */ export declare function serve(handlers?: HandlerRegistration, io?: ServeProcess): Promise; //# sourceMappingURL=Serve.d.ts.map