export interface SecretAddress { readonly namespace: string; readonly key: string; } export interface SecretRecord { readonly value: string; /** Opaque content identity, not a monotonic revision or an authorization token. */ readonly version: string; } export interface SecretsRequestOptions { readonly signal?: AbortSignal; } /** * Grant only to trusted credential consumers. Namespace selection addresses * storage within the provider's grant; it does not authorize a new namespace. * An address outside the grant fails with unavailable, not an absent record. * Values must stay out of model-facing results, UI, logs and durable events. */ export interface SecretsService { read(address: SecretAddress, options?: SecretsRequestOptions): Promise; write(address: SecretAddress, record: { readonly value: string; readonly expectedVersion: string | null; }, options?: SecretsRequestOptions): Promise; remove(address: SecretAddress, expectedVersion: string, options?: SecretsRequestOptions): Promise; } export type SecretServiceErrorCode = 'invalid' | 'unavailable' | 'conflict'; export declare class SecretServiceError extends Error { readonly code: SecretServiceErrorCode; constructor(code: SecretServiceErrorCode); } export declare const SECRETS_LIMITS: Readonly<{ namespaceBytes: 64; keyBytes: 128; valueBytes: number; versionBytes: 128; }>; export declare const SECRETS_SERVICE: import("../services.js").ServiceContract; //# sourceMappingURL=secrets.d.ts.map