declare const ADDED = "ADDED"; declare const MODIFIED = "MODIFIED"; declare const DELETED = "DELETED"; declare const ERROR = "ERROR"; type Listener = (_items: unknown) => void; interface WatchOptions { params?: Record; headers?: Record; signal?: AbortSignal; body?: Object | null; mode?: RequestMode; cache?: RequestCache; credentials?: RequestCredentials; ignoreSsl?: boolean; debug?: boolean; } declare class Watch { private readonly listeners; private readonly controller; private readonly signal; private resourceVersion; private readonly PREFIX; private readonly decoder; private readonly url; private readonly options; private readonly getCurrentToken?; constructor(url: string, options?: WatchOptions, getCurrentToken?: () => string); refreshToken: (newToken: string) => void; private checkType; private addListener; private informListeners; private handleEvents; private getResourceVersion; start: () => () => void; on: (type: string, listener: Listener) => this; cancel: () => void; } export { ADDED, MODIFIED, DELETED, ERROR, Watch }; //# sourceMappingURL=watch.d.ts.map