import { CryptoSchema } from './types'; export interface GetKeyPairParams { mnemonic: string; derivation?: string; algorithm?: CryptoSchema; } /** * Get a base58 public key from an address * The returned string can be used to get the avatar from https://g1.data.e-is.pro/user/profile/{{base58}}/_image/avatar.png * @param address - The address to get the base58 public key from * @returns The base58 public key (without SS58 prefix) */ export declare function getBase58FromAddress(address: string): string; /** * Get a public key from an address * @param address - The address to get the public key from * @returns The public key */ export declare function getPublicKey(address: string): Uint8Array; export interface GetKeyPairFromMiniSecretParams { miniSecret: string | Uint8Array; derivation?: string; algorithm?: CryptoSchema; } export declare function getKeyPairFromMiniSecret({ miniSecret, derivation, algorithm }: GetKeyPairFromMiniSecretParams): import('@polkadot-labs/hdkd-helpers').KeyPair; /** * Get a key pair from a mnemonic and derivation * @param params - The parameters object * @param params.mnemonic - The mnemonic to use * @param params.derivation - The derivation to use * @param params.algorithm - The algorithm to use, default is ed25519 * @returns A key pair */ export declare function getKeyPair({ mnemonic, derivation, algorithm }: GetKeyPairParams): import('@polkadot-labs/hdkd-helpers').KeyPair; /** * Get a signer from a mnemonic and derivation * @param params - The parameters object * @param params.mnemonic - The mnemonic to use * @param params.derivation - The derivation to use * @param params.algorithm - The algorithm to use, default is ed25519 * @returns A signer */ export declare function getSigner({ mnemonic, derivation, algorithm }: GetKeyPairParams): import('polkadot-api').PolkadotSigner;