import { ReadonlyJSONValue } from "../../utils/json/json-value.js";
import { ObjectStreamChunk, ObjectStreamOperation } from "./types.js";

//#region src/core/object/createObjectStream.d.ts
type ObjectStreamController = {
  readonly abortSignal: AbortSignal;
  enqueue(operations: readonly ObjectStreamOperation[]): void;
};
type CreateObjectStreamOptions = {
  execute: (controller: ObjectStreamController) => void | PromiseLike<void>;
  defaultValue?: ReadonlyJSONValue;
};
declare const createObjectStream: ({
  execute,
  defaultValue
}: CreateObjectStreamOptions) => ReadableStream<ObjectStreamChunk>;
//#endregion
export { createObjectStream };
//# sourceMappingURL=createObjectStream.d.ts.map