import type { CacheDidUpdateCallbackParam, SerwistPlugin } from "../../types.js"; import type { BroadcastCacheUpdateOptions } from "./types.js"; /** * A class implementing the `cacheDidUpdate` lifecycle callback. It will automatically * broadcast a message whenever a cached response is updated. */ export declare class BroadcastUpdatePlugin implements SerwistPlugin { private readonly _broadcastUpdate; /** * Construct a {@linkcode BroadcastCacheUpdate} instance with * the passed options and calls its {@linkcode BroadcastCacheUpdate.notifyIfUpdated} * method whenever the plugin's {@linkcode BroadcastUpdatePlugin.cacheDidUpdate} callback * is invoked. * * @param options */ constructor(options?: BroadcastCacheUpdateOptions); /** * @private * @param options The input object to this function. */ cacheDidUpdate(options: CacheDidUpdateCallbackParam): void; } //# sourceMappingURL=BroadcastUpdatePlugin.d.ts.map