import { AccountLoader } from './account-loader'; import { LaunchOptions } from 'puppeteer'; /** * Configuration options for the FNB Api. * @see FnbApi */ export interface ApiOptions { /** The username to log in with. */ username: string; /** The password to log in with. */ password: string; /** Should scraped data be cached. Default = true */ cache?: boolean; /** If scraped data should be cached, for how long? Default = 60 */ cacheTimeInSeconds?: number; /** Puppeteer options */ puppeteerOptions?: LaunchOptions; } /** * Entry point into fetching banking data. * @see ApiOptions */ export declare class Api { private _options; private _scraper; /** Provides access to account information. */ readonly accounts: AccountLoader; constructor(options: ApiOptions); /** Frees up puppeteer resources */ close(): void; }