import type { EncryptedCredentialSecret } from './KeyWrapper'; export interface GatewayPrincipal { webId: string; } export type ProviderSecret = Record; export interface CredentialVault { seal(principal: GatewayPrincipal, credentialIri: string, provider: string, secret: ProviderSecret): Promise; open(principal: GatewayPrincipal, credentialIri: string, provider: string, encrypted: EncryptedCredentialSecret): Promise; rewrap(principal: GatewayPrincipal, encrypted: EncryptedCredentialSecret): Promise; needsRewrap?(encrypted: EncryptedCredentialSecret): boolean; } export declare class CredentialVaultError extends Error { constructor(message?: string); }