import type { CryptoCurrency } from "./types"; import { DerivationMode } from "@ledgerhq/types-live"; export type GetAddressResult = { address: string; path: string; publicKey: string; chainCode?: string; }; export type GetAddressOptions = { currency: CryptoCurrency; path: string; derivationMode: DerivationMode; verify?: boolean; askChainCode?: boolean; forceFormat?: string; devicePath?: string; segwit?: boolean; }; export declare function isDerivationMode(mode: string): mode is DerivationMode; export declare const asDerivationMode: (derivationMode: string) => DerivationMode; export declare const getAllDerivationModes: () => DerivationMode[]; export declare const getMandatoryEmptyAccountSkip: (derivationMode: DerivationMode) => number; export declare const isInvalidDerivationMode: (derivationMode: DerivationMode) => boolean; export declare const isSegwitDerivationMode: (derivationMode: DerivationMode) => boolean; export declare const isNativeSegwitDerivationMode: (derivationMode: DerivationMode) => boolean; export declare const isTaprootDerivationMode: (derivationMode: DerivationMode) => boolean; export declare const isIterableDerivationMode: (derivationMode: DerivationMode) => boolean; export declare const getDerivationModeStartsAt: (derivationMode: DerivationMode) => number; export declare const getTagDerivationMode: (currency: CryptoCurrency, derivationMode: DerivationMode) => string | null | undefined; export declare const getAddressFormatDerivationMode: (derivationMode: DerivationMode) => string; export declare const derivationModeSupportsIndex: (derivationMode: DerivationMode, index: number) => boolean; /** * return a ledger-lib-core compatible DerivationScheme format * for a given currency and derivationMode (you can pass an Account because same shape) */ export declare const getDerivationScheme: ({ derivationMode, currency, }: { derivationMode: DerivationMode; currency: CryptoCurrency; }) => string; export declare const runDerivationScheme: (derivationScheme: string, { coinType, }: { coinType: number; }, opts?: { account?: number | string; node?: number | string; address?: number | string; }) => string; export declare const runAccountDerivationScheme: (scheme: string, currency: { coinType: number; }, opts?: { account?: number | string; }) => string; export declare const getSeedIdentifierDerivation: (currency: CryptoCurrency, derivationMode: DerivationMode) => string; export declare const getDerivationModesForCurrency: (currency: CryptoCurrency) => DerivationMode[]; export declare const getPreferredNewAccountScheme: (currency: CryptoCurrency) => DerivationMode[] | null | undefined; export declare const getDefaultPreferredNewAccountScheme: (currency: CryptoCurrency) => DerivationMode | null | undefined; //# sourceMappingURL=derivation.d.ts.map