import { KeyContext } from "@algorandfoundation/xhd-wallet-api"; import type { Key, KeyData } from "./types/index.ts"; export declare const derivableTypes: string[]; export declare function requiresParentKey(key: Partial): boolean; /** * Clears sensitive key material from a KeyData object. * * @param key - The {@link KeyData} to clear. If null or undefined, does nothing. */ export declare function clearKeyData(key?: Partial | null): void; /** * Hardens a number for BIP32 derivation (adds 0x80000000). * @param num - The index to harden * @returns The hardened index */ export declare const harden: (num: number) => number; /** * Generates a BIP44 path based on the key context, account, and index. * @param context - The {@link KeyContext} (e.g., Address or Identity) * @param account - The account index * @param key_index - The key index * @returns An array of hardened and unhardened path components * @throws Error if context is invalid */ export declare function getBIP44PathFromContext(context: KeyContext, account: number, key_index: number): number[]; /** * Encrypts data using the provided public key. * * @param params - The encryption parameters. * @param params.key - The {@link KeyData} containing the public key. * @param params.data - The plaintext data to encrypt. * @param params.algorithm - Optional algorithm to use. * @returns A promise that resolves to the encrypted data (ciphertext). */ export declare function encryptWithKeyData({ key, data, }: { key: KeyData; data: Uint8Array; algorithm?: string; }): Promise>; /** * Decrypts data using the provided secret key. * * @param params - The decryption parameters. * @param params.key - The {@link KeyData} containing the secret key. * @param params.data - The ciphertext to decrypt. * @param params.algorithm - Optional algorithm to use. * @returns A promise that resolves to the decrypted data (plaintext). */ export declare function decryptWithKeyData({ key, data, }: { key: KeyData; data: Uint8Array; algorithm?: string; }): Promise>; //# sourceMappingURL=crypto.d.ts.map