import { PathBuilder } from "./pathbuilder"; import { TokenConfiguration } from "./tokenmanager"; import { MinimalAccount, SendJob } from "./types"; export declare class Faucet { static make(apiUrl: string, addressPrefix: string, config: TokenConfiguration, mnemonic: string, pathBuilder: PathBuilder, numberOfDistributors: number, logging?: boolean): Promise; readonly addressPrefix: string; readonly holderAddress: string; readonly distributorAddresses: readonly string[]; private readonly tokenConfig; private readonly tokenManager; private readonly readOnlyClient; private readonly clients; private readonly logging; private creditCount; private constructor(); /** * Returns a list of denoms of tokens owned by the holder and configured in the faucet */ availableTokens(): Promise; /** * Creates and broadcasts a send transaction. Then waits until the transaction is in a block. * Throws an error if the transaction failed. */ send(job: SendJob): Promise; /** Use one of the distributor accounts to send tokens to user */ credit(recipient: string, denom: string): Promise; /** Returns a list of token denoms which are configured */ configuredTokens(): string[]; loadAccount(address: string): Promise; loadAccounts(): Promise; refill(): Promise; /** returns an integer >= 0 that increments and is unique for this instance */ private getCreditCount; }