import { DecionisGate, SafeExecutor, ShadowPipeline, type ActionRegistry, type AuditRecorder, type AuthorizationVerifier, type DecisionAuthority, type DispatchedAttempts, type PresenceApprovalClient } from "@decionis/agent-safe-pipeline"; import type { EffectEvidenceRegister } from "../adapters/EffectEvidenceRegister.js"; import type { ExecutorConfig } from "../config/ExecutorConfig.js"; import type { FetchLike } from "../handlers/HandlerRegistration.js"; import type { SecurityEvents } from "../incident/SecurityEvents.js"; import type { SecretStore } from "../secrets/SecretStore.js"; import type { EdgeRuntime } from "./EdgeRuntime.js"; import { EscalationResolver } from "./EscalationResolver.js"; /** Everything that holds an authority or Presence credential, built together. */ export interface AuthorityClientSet { readonly gate: DecionisGate; /** What decides first: the gate itself, or the edge authority in front of it. */ readonly authority: DecisionAuthority; readonly verifier: AuthorizationVerifier; readonly executor: SafeExecutor; readonly escalation: EscalationResolver; readonly shadow: ShadowPipeline | null; } export interface AuthorityClientsOptions { readonly config: ExecutorConfig; readonly secrets: SecretStore; readonly registry: ActionRegistry; readonly audit: AuditRecorder; readonly events: SecurityEvents; readonly fetch?: FetchLike; readonly presence?: PresenceApprovalClient; /** The effect observations a handler registered, for the verifier to finalize with. */ readonly effects?: EffectEvidenceRegister; readonly observer?: { readonly id: string; readonly version: string; }; /** The edge evaluator, when the configuration asks for it; it outlives every rebuild. */ readonly edge?: EdgeRuntime | null; /** The executor's record of what it dispatched, which a caller's reconciliation is held against. */ readonly attempts?: DispatchedAttempts; } /** * The gate, the verifier, the executor around them, the escalation resolver * and the shadow pipeline, built as one set. * * The authority's credential is handed to the gate and the verifier as a * function rather than a value, so each request reads the current secret and * a rotation needs no new client: a request in flight keeps the string it * already sent, and the next one carries the new one. The registry and the * audit recorder are shared, because they hold no credential. */ export declare class AuthorityClients { private readonly options; private set; private readonly unsubscribe; constructor(options: AuthorityClientsOptions); current(): AuthorityClientSet; close(): void; private static build; } //# sourceMappingURL=AuthorityClients.d.ts.map