import { type KeyData, type KeyId, type KeyStoreState } from "@algorandfoundation/keystore"; import type { Store } from "@tanstack/store"; import { type MMKV } from "react-native-mmkv"; export declare const storage: MMKV; /** * Fetches a secret from persistent storage and decrypts it using the master key. * @param params - The fetch parameters. * @param params.keyId - The ID of the key to fetch * @param params.masterKey - Optional master key override * @returns The decrypted secret data or null if not found */ export declare function fetchSecret({ keyId, masterKey, }: { keyId: KeyId; masterKey?: Buffer; }): Promise; /** * Removes a secret from persistent storage. * @param params - The removal parameters. * @param params.keyId - The ID of the key to remove */ export declare function removeSecret({ keyId }: { keyId: KeyId; }): Promise; /** * Commits a key to persistent storage and updates the reactive store. * The private key is encrypted before storage and cleared from memory. * @param params - The commit parameters. * @param params.store - The reactive store instance * @param params.keyData - The key data to store */ export declare function commit({ store, keyData, }: { store: Store; keyData: KeyData; }): Promise; export declare function encode(key: KeyData): string; export declare function decode(data: string): KeyData; //# sourceMappingURL=state.d.ts.map