import { Fetcher, IScope, IPromiseSubscriber, IResumablePromise, FunctionOrNull } from "./interface"; export default class PromiseSubscriber implements IPromiseSubscriber { id: string; fetcher: Fetcher; scope: IScope; fetchArgs: any[]; promise: IResumablePromise; cacheKey: string; dataRef: null | object; remover: FunctionOrNull; onSuccess: FunctionOrNull; onError: FunctionOrNull; constructor({ fetcher, scope, fetchArgs, cacheKey, onSuccess, onError }: { fetcher: Fetcher; scope: IScope; fetchArgs: any[]; cacheKey: string; onSuccess: () => void | null; onError: () => void | null; }); resolve(newData?: any): void; reject(err: Error): void; validate(): void; teardown(): void; forceRevalidate(): void; } //# sourceMappingURL=PromiseSubscriber.d.ts.map