import type { OrgDaemon } from './daemon.js'; export interface OrgServer { port: number; close: () => void; /** Authorizes the human-decision routes (approvals, gates, answers, human * messages) and, as a superset, everything else. Never published to the * broker registry — see broker.ts's defaultOperatorDir(). */ operatorCredential: string; } export interface ServerOpts { /** Filter tool audit events by tool name or decision (allow|deny) */ auditFilter?: { tool?: string; decision?: 'allow' | 'deny'; }; } /** Minimal HTTP listener for cross-process org message delivery. * Binds an ephemeral port (pass 0) so the daemon can register it with the broker. * Two credentials gate requests: each hosted org's agent credential (published * via the broker; unlocks delivery/status routes) and the operator credential * (generated here unless supplied; unlocks OPERATOR_ROUTES as well). */ export declare function startOrgServer(daemon: OrgDaemon, port?: number, operatorCredential?: string): Promise; //# sourceMappingURL=server.d.ts.map