import { grpc } from "@improbable-eng/grpc-web"; import { AddressesResponse, NewAddressResponse, SendFilResponse } from "@textile/grpc-powergate-client/dist/powergate/admin/v1/admin_pb"; import { Config } from "../../types"; export interface AdminWallet { /** * Create a new wallet address. * @param type The type of address to create, bls or secp256k1. * @returns The new address. */ newAddress: (type?: "bls" | "secp256k1") => Promise; /** * List all wallet addresses. * @returns The list of wallet addresses. */ addresses: () => Promise; /** * Send Fil from one address to another. * @param from The address to send from. * @param to The address to send to. * @param amount The amount of Fil to send. */ sendFil: (from: string, to: string, amount: bigint) => Promise; } /** * @ignore */ export declare const createWallet: (config: Config, getMeta: () => grpc.Metadata) => AdminWallet;