import type { SuperJSON } from "superjson"; import type { EasyFS } from "../../google-aistudio/browser/utils.js"; import { FsDuplex } from "../common/fs-duplex.js"; /** * @deprecated This class is part of the old file-based communication protocol. * It will be replaced by the new `fs-duplex` module implementation. */ export declare class BrowserFsDuplex extends FsDuplex { private _fs; private _filename; private _lastContent; private _isDestroyed; private _idleCallbackId; constructor(superjson: SuperJSON, _fs: EasyFS, _filename: string); get filename(): string; /** * Starts the polling mechanism using requestIdleCallback. */ start(): void; private _poll; /** * Writes data to the task file in the browser's filesystem. * @param payload A partial task object to be merged and written. */ write(payload: Partial): Promise; /** * Destroys the duplex channel, stops polling, and deletes the task file. */ destroy(): Promise; } //# sourceMappingURL=fs-duplex.d.ts.map