UNPKG

513 BTypeScriptView Raw
1import type { DeriveJunction } from './DeriveJunction.js';
2export interface ExtractResult {
3 derivePath: string;
4 password?: string;
5 path: DeriveJunction[];
6 phrase: string;
7}
8/**
9 * @description Extracts the phrase, path and password from a SURI format for specifying secret keys `<secret>/<soft-key>//<hard-key>///<password>` (the `///password` may be omitted, and `/<soft-key>` and `//<hard-key>` maybe repeated and mixed).
10 */
11export declare function keyExtractSuri(suri: string): ExtractResult;