/** * KKAPI Batch Client for Pioneer SDK * * Provides batch operations for kkapi:// protocol to optimize performance: * 1. Single batch call to get ALL cached pubkeys * 2. Audit which ones are missing * 3. Individual fallback only for missing pubkeys */ export interface KkapiPubkey { pubkey: string; address: string; path: string; pathMaster: string; scriptType: string; networks: string[]; type: string; note?: string; available_scripts_types?: string[]; context?: string; } export interface KkapiBatchPubkeysResponse { pubkeys: KkapiPubkey[]; cached_count: number; total_requested: number; device_id?: string; } export interface KkapiHealthStatus { available: boolean; device_connected: boolean; cached_pubkeys: number; vault_version?: string; } /** * Check if kkapi:// vault is available and ready */ export declare function checkKkapiHealth(baseUrl?: string): Promise; /** * Get multiple pubkeys in a single batch call from kkapi:// vault * Returns cached pubkeys and indicates which paths are missing */ export declare function batchGetPubkeys(paths: any[], context: string, baseUrl?: string): Promise; /** * Optimized getPubkeys that uses batch fetching with individual fallback * * Strategy: * 1. Try batch fetch from kkapi:// vault first (fast) * 2. Audit which pubkeys are missing * 3. Individual keepkey-sdk calls only for missing ones */ export declare function optimizedGetPubkeys(blockchains: string[], paths: any[], keepKeySdk: any, context: string, getPubkeyFunction: (networkId: string, path: any, sdk: any, context: string) => Promise): Promise; //# sourceMappingURL=kkapi-batch-client.d.ts.map