import { IAppResponse } from "../shared/src/plugin.js";
import { StreamConfig } from "../shared/src/execute.js";

//#region src/stream/stream-manager.d.ts
declare class StreamManager {
  private activeOperations;
  private streamRegistry;
  private sseWriter;
  private maxEventSize;
  private bufferTTL;
  constructor(options?: StreamConfig);
  stream(res: IAppResponse, handler: (signal: AbortSignal) => AsyncGenerator<any, void, unknown>, options?: StreamConfig): Promise<void>;
  abortAll(): void;
  getActiveCount(): number;
  private _attachToExistingStream;
  private _createNewStream;
  private _processGeneratorInBackground;
  private _combineSignals;
  private _broadcastEventsToClients;
  private _broadcastErrorToClients;
  private _closeAllClients;
  private _cleanupStream;
  private _categorizeError;
}
//#endregion
export { StreamManager };
//# sourceMappingURL=stream-manager.d.ts.map