import type { ProviderSecret } from './CredentialVault'; export declare const PLAINTEXT_CREDENTIAL_STORAGE_MODE = "plaintext-v1"; export declare const SECRET_CELL_CREDENTIAL_STORAGE_MODE = "secret-cell-v1"; export type PlaintextCredentialStorageMode = typeof PLAINTEXT_CREDENTIAL_STORAGE_MODE; export interface PlaintextCredentialRow { storageMode?: unknown; secretPayload?: unknown; encryptedSecret?: unknown; wrappedDataKey?: unknown; encryptionAlgorithm?: unknown; } export declare class UnsupportedCredentialStorageModeError extends Error { readonly storageMode: string; constructor(storageMode: string); } export declare function encodePlaintextCredential(secret: ProviderSecret): string; export declare function decodePlaintextCredential(row: PlaintextCredentialRow): ProviderSecret;