import type { KeyWrapContext, KeyWrapper, WrappedDataKey } from './KeyWrapper'; export declare const LOCAL_KEYCHAIN_WRAP_AAD_PURPOSE = "xpod.ai-gateway.local-keychain-dek-wrap"; export declare const LOCAL_KEYCHAIN_WRAP_AAD_VERSION = "v1"; export interface LocalSecureStore { getSecret(key: string): Promise; setSecret(key: string, value: string): Promise; getOrCreateSecret?(key: string, create: () => Promise): Promise; } export interface LocalKeychainWrapperOptions { secureStore: LocalSecureStore; keyId: string; keyVersion?: string; } /** * @deprecated Compatibility-only adapter. Production Xpod bootstrap uses the * generic Pod SecretCell keyring configured through XPOD_SECRET_CELL_*. */ export declare class LocalKeychainWrapper implements KeyWrapper { private readonly secureStore; private readonly keyId; private readonly keyVersion?; constructor(options: LocalKeychainWrapperOptions); wrapDek(context: KeyWrapContext, dek: Uint8Array): Promise; unwrapDek(context: KeyWrapContext, wrapped: WrappedDataKey): Promise; private getOrCreateMasterKey; private getExistingMasterKey; }