import type { Key, KeyData, SeedData, XHDDerivedKeyData, XHDDomainP256KeyData, XHDRootKey } from "./types/index.ts"; /** * Options for BIP39 mnemonic generation. */ export interface BIP39GenerationOptions { /** Optional ID for the generated key */ id?: string; /** Optional name for the generated key */ name?: string; /** Strength of the mnemonic (128, 256 bits) */ strength?: number; /** Wordlist to use for the mnemonic */ wordlist?: string[]; /** Whether the generated key is extractable */ extractable?: boolean; /** Optional passphrase for the seed */ passphrase?: string; } /** * Generates a new HD seed from a BIP39 mnemonic. * @param options - Generation options * @returns The generated seed data */ export declare function generateSeedData(options?: BIP39GenerationOptions): Promise; /** * Generates an XHD root key from a seed. * @param seed - The seed data to use * @returns The generated root key */ export declare function generateXHDRootKeyFromSeed(seed: SeedData): Promise; /** * Generates a derived key or P256 key from a parent root key. * @param params - The generation parameters * @param params.key - Partial key data for the derived key * @param params.parentKey - The parent root key * @returns The fully populated derived key or P256 key */ export declare function generateXHDFromParent({ key, parentKey, }: { key: Partial | Partial; parentKey: XHDRootKey; }): Promise; export declare function generateKey({ keyData, parentKey, }: { keyData: Omit; parentKey?: XHDRootKey | SeedData | null; }): Promise; //# sourceMappingURL=generate.d.ts.map