import type { AddressInfo } from "node:net"; import { type Authenticator } from "../identity/Authenticator.js"; import type { TrustedExecutorService } from "../service/TrustedExecutorService.js"; import type { TlsListener } from "./TlsListener.js"; export interface ExecutorHttpServerOptions { /** The TLS listener; plaintext when null, which the configuration allows outside production only. */ readonly tls?: TlsListener | null; } /** * The process's one listener. Every route that is not public goes through * the authenticator, which decides who the caller is and whether the route * is theirs; the body is bounded before it is read; a failure is a status * and a code, never a message, a stack, or anything from the request. * Every authenticated request runs inside a request scope, so the evidence * lines it causes name the principal. */ export declare class ExecutorHttpServer { private readonly service; private readonly authenticator; private readonly server; private readonly tls; constructor(service: TrustedExecutorService, authenticator: Authenticator, options?: ExecutorHttpServerOptions); listen(port: number, address: string): Promise; close(): Promise; /** Replaces the TLS context from the current material; connections already open keep theirs. */ rotateTls(): void; private handle; private dispatch; /** * The route a path names: an exact path, or the result route with the * authorization id its segment carries. The id is passed on as written, * percent-encoding and all, and refused by the service unless it is a * plain reference. */ private static route; private static readJson; private static reply; private static replyText; } //# sourceMappingURL=ExecutorHttpServer.d.ts.map