/** * Shared inference admission service (3.0.0 cross-host bridge). * * A SMALL local HTTP service on Bucephalus that exposes the central * `SharedInferenceScheduler` to remote Jensen runtimes. It is deliberately NOT a * general distributed orchestration server: it exposes only inference admission * (request/wait/renew/release/cancel) plus a health probe, over structured JSON. * * Authority: the service wraps a scheduler over the SAME durable ledger local * processes use. It never duplicates the scheduling algorithm and never issues * independent capacity. Remote clients authenticate with a short-lived, * execution-scoped bearer token. */ import { type AdmissionResponse } from "./admission-protocol.js"; import type { SharedInferenceScheduler } from "./scheduler.js"; import type { SharedInferenceResource } from "./types.js"; export interface AdmissionTokenScope { executionId: string; remoteTargetId?: string; expiresAtMs: number; } export interface IssuedAdmissionToken { token: string; scope: AdmissionTokenScope; } export interface SharedInferenceAdmissionServiceOptions { scheduler: SharedInferenceScheduler; resources: SharedInferenceResource[]; host?: string; port?: number; tokenTtlMs?: number; now?: () => number; } export declare class SharedInferenceAdmissionService { private readonly _scheduler; private readonly _resources; private readonly _host; private readonly _requestedPort; private readonly _tokenTtlMs; private readonly _now; private readonly _tokens; private _server?; private _port; constructor(options: SharedInferenceAdmissionServiceOptions); get port(): number; get url(): string; start(): Promise; stop(): Promise; /** Issue a short-lived, execution-scoped token for one remote execution. */ issueToken(scope: { executionId: string; remoteTargetId?: string; ttlMs?: number; }): IssuedAdmissionToken; revokeToken(token: string): void; private _handle; private _authorize; private _assertExecution; private _str; private _validateAdmitted; private _readBody; private _parse; private _send; } export type { AdmissionResponse }; //# sourceMappingURL=admission-service.d.ts.map