import type { DualKeyAccount } from './types.mjs'; export type MnemonicToAccountArgs = { mnemonic: string; /** * 완전히 형성된 BIP-44 path. 이 값을 넘기면 deriveKeysFromMnemonicAndPath * 가 사용되고 master KeyAlgorithm 은 path 에서 추론된다. normal * KeyAlgorithm 은 노드 측 헬퍼가 ed25519 로 고정한다. 이 모드에서는 * `algoMaster`, `algoNormal`, `index` 가 무시된다. */ path?: string; /** `path` 가 없을 때 필수. */ algoMaster?: string; /** `path` 가 없을 때 필수. */ algoNormal?: string; /** BIP-44 account index. 기본값 0. `path` 가 있으면 무시된다. */ index?: number; }; /** * BIP-39 mnemonic 으로부터 WASM 을 거쳐 Locus DualKeyAccount 를 derive 한다. * 라이브러리는 결과 secret key 를 반환된 localKeySource 클로저 외에는 * 보관하지 않는다 — 콜백 방식 키 위임이 필요한 호출자는 * deriveKeysFromMnemonic / deriveKeysFromMnemonicAndPath 를 직접 호출한 뒤 * 결과를 `toAccount({ master, normal })` 에 넘기는 게 권장. */ export declare function mnemonicToAccount(args: MnemonicToAccountArgs): DualKeyAccount;