/** * What a shared hold store keeps of a grant at rest, sealed: the captured * intent and the decision, which carries the authority's grant token, and * later the authorization a claim returned. The database then holds no * bearer credential in clear, and a row copied out of it opens nowhere but * in a process that holds the deployment's hold key. * * AES-256-GCM under a 256-bit key, a fresh 96-bit nonce per seal, and the * row's own identity as associated data, so a sealed value moved to another * row, or to another table or namespace, does not open. The key is read * from the secret store at the moment of use and never written anywhere. */ export declare class CardHoldSeal { private readonly key; static readonly VERSION = "v1"; private constructor(); /** A key of exactly 32 bytes; anything else is refused by name, never echoed. */ static fromKey(key: Buffer): CardHoldSeal; /** * The key as a secret file carries it: 32 bytes as base64 or as 64 hex * characters, surrounding whitespace ignored. Raw bytes are not accepted, * so a key file is always text an operator can inspect for shape. */ static fromText(text: string): CardHoldSeal; seal(plaintext: string, associated: string): string; /** The plaintext, or null for anything that does not open under this key and this identity. */ open(sealed: string, associated: string): string | null; } //# sourceMappingURL=CardHoldSeal.d.ts.map