import type { SecurityEvents } from "../incident/SecurityEvents.js"; import type { SecretHandle } from "./SecretHandle.js"; import { type ReloadReason, type ReloadReport, type SecretName, type SecretStore } from "./SecretStore.js"; export interface EnvironmentSecretOptions { readonly events: SecurityEvents; /** Under production every secret must be a mounted file. */ readonly production: boolean; /** Refuse a secret file another user could read; off only for development. */ readonly enforcePermissions: boolean; readonly watch?: boolean; readonly pollMs?: number; readonly graceMs?: number; readonly euid?: number; readonly egid?: number; } /** * The secrets a deployment supplies, wherever each one came from: a mounted * file (`_FILE`) for the ones that can rotate, or the environment * (``) outside production. A name given both ways is refused, as is a * name given neither way; in production a name given in the environment is * refused too, because the file is the only shape whose permissions and * rotation this process can verify. */ export declare class CompositeSecretStore implements SecretStore { private readonly byName; private readonly stores; private constructor(); static fromEnvironment(env: Readonly>, required: readonly SecretName[], options: EnvironmentSecretOptions): CompositeSecretStore; /** The names this store holds, for the redactor's digest set. */ names(): readonly SecretName[]; has(name: SecretName): boolean; get(name: SecretName): SecretHandle; onRotate(name: SecretName, listener: (next: SecretHandle) => void): () => void; reload(reason: ReloadReason): Promise; close(): void; } //# sourceMappingURL=CompositeSecretStore.d.ts.map