import type { IDomain } from './types/common'; import type IConfig from './types/IConfig'; import Account from './classes/Account'; /** * Fetches available domains from server */ export declare function fetchDomains({ page, getRandomDomain }?: { page?: number; getRandomDomain?: Random; } | undefined): Promise; /** * Creates an account * @example * const account = await createAccount() * console.log(account.email) */ export declare function createAccount(address?: string, password?: string): Promise; export declare function loginAccount(address: string, password: string): Promise; export declare function loginAccount(token: string): Promise; export declare function setConfig(config: IConfig): void;