import type { KvService } from '@redocly/config'; import type { UpstreamAuthScheme } from './upstream-auth-scheme.js'; 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; hasExistingSecret: boolean; operations?: string[]; }; export type ElicitationTarget = { subject: string; api: string; name: string; scheme: string; schemeLabel?: string; auth: UpstreamAuthScheme; hasExistingSecret?: boolean; schemes?: ElicitationScheme[]; }; export declare class SecretStore { #private; setSecret(kv: KvService, subject: string, api: string, scheme: string, secret: StoredSecret): Promise; getSecretsForSubject(kv: KvService, subject: 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: ElicitationTarget): Promise; peekElicitation(kv: KvService, token: string): Promise; consumeElicitation(kv: KvService, token: string): Promise; } export declare const secretStore: SecretStore; //# sourceMappingURL=secret-store.d.ts.map