export declare type Config = { /** * Key to authenticate with the Nevobo API. * Not needed as of Sep. 4 but might be in the future */ apiKey?: string; /** * Run in debug mode: * Print urls before each request. */ debug?: boolean; }; export declare type NevoboResponse = { success: boolean; reason?: string; data?: T; }; export declare type Pagination = { page?: number; limit?: number; }; export declare abstract class Base { private basePath; private readonly apiKey; private readonly debug; constructor(config?: Config); getArgumentErrorPromise(reason: string): Promise>; /** * Make a request, return a Promise of a NevoboResponse * * @param endpoint to call * @param options added to the fetch * @param paginated if true some more parsing has to be done after the call */ protected request(endpoint: string, paginated?: boolean, options?: RequestInit): Promise>; }