import { LitClientOptions } from './'; import { Account, AccountInfoRequestPartial, AccountsClient, CreateAccountRequestPartial, CreateAccountResponse, ListAccountsRequestPartial, ListAccountsResponse, RemoveAccountRequestPartial, RemoveAccountResponse, UpdateAccountRequestPartial } from './types'; /** * API interface for litd's Accounts RPC sub-server. */ export declare class AccountsApi { /** * Create a new AccountsApi instance. */ static create(options: LitClientOptions): AccountsApi; /** * The grpc client to communicate with the daemon. */ client: AccountsClient; constructor(client: AccountsClient); /** * CreateAccount adds an entry to the account database. This entry represents * an amount of satoshis (account balance) that can be spent using off-chain * transactions (e.g. paying invoices). * * Macaroons can be created to be locked to an account. This makes sure that * the bearer of the macaroon can only spend at most that amount of satoshis * through the daemon that has issued the macaroon. * * Accounts only assert a maximum amount spendable. Having a certain account * balance does not guarantee that the node has the channel liquidity to * actually spend that amount. */ createAccount(request?: CreateAccountRequestPartial): Promise; /** * UpdateAccount updates an existing account in the account database. */ updateAccount(request?: UpdateAccountRequestPartial): Promise; /** * ListAccounts returns all accounts that are currently stored in the account * database. */ listAccounts(request?: ListAccountsRequestPartial): Promise; /** * AccountInfo returns the account with the given ID or label. */ accountInfo(request?: AccountInfoRequestPartial): Promise; /** * RemoveAccount removes the given account from the account database. */ removeAccount(request?: RemoveAccountRequestPartial): Promise; }