import type { Server } from "node:http"; import { type AgentContinuationOriginContext } from "@mono-agent/agent-contracts"; import type { ContinuationStore, DurableContinuationRecord } from "./continuation-store.js"; import { type ClaimBinding, type ContinuationServiceLogger, type ContinuationServiceOptions, type ResolvedOriginContext } from "./continuation-service-types.js"; import { type ContinuationLimits, type NamedContinuationRoute } from "./continuations.js"; export declare abstract class ContinuationOriginService { protected readonly store: ContinuationStore; protected readonly secret: Buffer; protected readonly options: ContinuationServiceOptions; protected readonly releaseStoreLock: () => Promise; protected readonly instanceId: `${string}-${string}-${string}-${string}-${string}`; protected readonly operatorToken: string; protected readonly claimBindings: Map; protected readonly activeClaimBindings: Set; protected readonly namedRoutes: Readonly>; protected readonly detachedServiceTokenHashes: ReadonlyMap; protected readonly maxResultBytes: number; protected readonly maxDeadlineMs: number; protected readonly leaseMs: number; protected readonly workerIntervalMs: number; protected readonly autoProcess: boolean; protected readonly limits: ContinuationLimits; protected readonly now: () => Date; protected readonly logger: ContinuationServiceLogger | undefined; protected readonly lifecycleAbort: AbortController; protected readonly inFlight: Map>; protected readonly activeHttpRequests: Set>; protected activeHandleOperations: number; protected handleDrainPromise: Promise | undefined; protected resolveHandleDrain: (() => void) | undefined; protected readonly resolvingUnknown: Set; protected dispatchTail: Promise; protected server: Server | undefined; protected baseUrl: string; protected worker: ReturnType | undefined; protected stopped: boolean; protected stopPromise: Promise | undefined; constructor(store: ContinuationStore, secret: Buffer, options: ContinuationServiceOptions, releaseStoreLock: () => Promise); abstract processDue(limit?: number): Promise; protected throwIfStopping(): void; protected runBoundedOperation(phase: "synthesis" | "delivery", timeoutMs: number, operation: () => Promise | T): Promise; protected runHandleOperation(operation: () => Promise): Promise; protected drainHandleOperations(): Promise; protected closeClaimBinding(token: string, binding: ClaimBinding): Promise; protected beginClaim(binding: ClaimBinding): () => void; protected requiresOriginContext(binding: ClaimBinding): Promise; private beginOriginSettlementOperation; protected settleClaimBinding(binding: ClaimBinding): void; protected finalizeOriginContext(binding: ClaimBinding, snapshot: AgentContinuationOriginContext): Promise; protected activateOriginContext(binding: ClaimBinding): Promise; protected abandonOriginContext(binding: ClaimBinding): Promise; protected resolveOriginContext(record: DurableContinuationRecord): Promise; private markOriginContextUnavailable; } //# sourceMappingURL=continuation-service-origin.d.ts.map