import "fetch-register"; import { Credentials } from "./authenticate"; import { AuthenticationSessionsTotp } from "./requests"; import * as I from "./interfaces"; import { InstrumentType } from "./interfaces"; interface PreFetch { (path: string, options: RequestInit): { [0]: string; [1]: RequestInit; }; } declare class Avanza { static BASE_URL: string; private preFetch; constructor(options?: { preFetch?: PreFetch; }); get isAuthenticated(): boolean; credentials: Credentials; session: AuthenticationSessionsTotp; expireSession(): void; retryAuthenticate(): Promise; authenticate(options: Credentials): Promise; authFetch(path: string, options?: RequestInit): Promise; fetch(path: string, options?: RequestInit): Promise; getAccounts(): Promise; getPositions(): Promise; getPositionsByInstrumentType(): Promise; getAccountsSummary(): Promise; getOrders(): Promise; getDealsAndOrders(): Promise; getOrderbooks(orderbookIds: string[]): Promise; searchList(query: string, instrumentType?: InstrumentType): Promise; search(query: string, instrumentType?: InstrumentType): Promise; } export * from "./interfaces"; export default Avanza;