/** * One issuance window (SPEC 13.15): an ephemeral `issuer` connection over which a mint stages * and releases its evidence and writes the accepted row, a lifecycle terminal retires the * issuances bound to its ledger family, and a host resolves the evidence a caller's request * rides. The connection lives for the callback only; no standing credential holds a grant on * either issued-authority store. */ import { type JetStreamManager } from "@nats-io/jetstream"; import { type KV } from "@nats-io/kv"; import type { NatsConnection } from "@nats-io/transport-node"; import { type IssuedSourceRef, type IssuedStore } from "./issued-authority.js"; import { type SpaceAuth } from "./provision.js"; export interface IssuerSession { readonly nc: NatsConnection; readonly jsm: JetStreamManager; readonly store: IssuedStore; readonly accepted: KV; /** Is a recorded source gate still live? The one source shape this repo issues against is a * static incarnation's credential ledger family (`cred.` on the auth store), whose * liveness is its issuance gate: a `retired` gate, or no gate, is a dead source. Any other * coordinate is refused rather than guessed live. */ sourceIsLive(source: IssuedSourceRef): Promise; } export declare function withIssuerSession(args: { servers: string; space: string; auth: SpaceAuth; tls: boolean; }, fn: (session: IssuerSession) => Promise): Promise; //# sourceMappingURL=issuer-session.d.ts.map