import type { KvService } from '@redocly/config'; import type { UpstreamAuthScheme } from './upstream-auth-scheme.js'; export declare const ELICITATION_TTL_MINUTES = 15; export declare const ELICITATION_TTL_MS: number; export type StoredSecret = { header: string; value: string; savedAt?: number; }; export type UpstreamSecrets = Record>; export type ElicitationScheme = { name: string; label?: string; auth: UpstreamAuthScheme; operations?: string[]; }; export type ElicitationTarget = { subject: string; api: string; name: string; scheme: string; schemeLabel?: string; auth: UpstreamAuthScheme; schemes?: ElicitationScheme[]; /** The schemes the failing operation accepts, when it accepts more than one. */ acceptedSchemes?: string[]; expiresAt: number; }; export type StoredSchemes = Record; export declare class SecretStore { #private; setSecret(kv: KvService, subject: string, api: string, scheme: string, secret: StoredSecret): Promise; getSecretsForSubject(kv: KvService, subject: string): Promise; getStoredSchemes(kv: KvService, subject: string, api: string): Promise; hasSecret(kv: KvService, subject: string, api: string, scheme: string): Promise; deleteSecret(kv: KvService, subject: string, api: string, scheme: string): Promise; deleteSubject(kv: KvService, subject: string): Promise; createElicitation(kv: KvService, target: Omit): Promise; peekElicitation(kv: KvService, token: string): Promise; consumeElicitation(kv: KvService, token: string): Promise; } export declare const secretStore: SecretStore; //# sourceMappingURL=secret-store.d.ts.map