import { ISingletonFetcherOpts } from '../types/fetch'; import { IStringMap } from '../types/common'; export declare function getAjaxUrl(path: string, queryParams?: string[] | IStringMap): string; export declare function delay(time: number): (...args: any[]) => Promise; export declare function wait(time: number): Promise; export declare class FetchBuffer { active: boolean; timer: ReturnType; reject: (reason: any) => void; aborter: AbortController; options: ISingletonFetcherOpts; defaultOptions: { logErrors: boolean; logResponse: boolean; buffer: number; }; constructor(opts: ISingletonFetcherOpts); initFetch(resolve: () => void, reject: (reason: any) => void, bufferTime?: number): void; buffer(bufferTime?: number): Promise; performFetch(url: string): () => Promise; bufferedFetch(url: string, bufferTime?: number): Promise; cancel(): Promise; parseResponse(response: Response): Promise; handleErrors(error: any): any[]; logError(msg: any): void; logWarn(msg: any): void; logResult(msg: any): void; reset(): void; get abortSignal(): AbortSignal; } export declare function singletonBufferedFetch(responseProcessor: (response: ParsedResponse) => FinalValue, options?: ISingletonFetcherOpts): (url: string) => Promise;