import * as Y from 'yjs'; import { YEvent } from 'yjs'; import { g as Subscribable } from './index.d-B8KPCV0w.js'; type YIterator = AsyncIterable & Subscribable & { length: number; push(e: T): any; raw: Y.Array; pop(): T; readableStream: (abortSignal: AbortSignal) => ReadableStream; }; declare function yArrayIterator(array: Y.Array): YIterator; type WithAction = T & { action: "add" | "delete"; }; declare global { interface Set { difference(set: Set): Set; } } declare class YDocStream { doc: Y.Doc; constructor(doc: Y.Doc); subdocs(abortSignal?: AbortSignal): AsyncGenerator>; componentsAsync(abortSignal?: AbortSignal): AsyncGenerator<[string, Y.AbstractType>]>; } export { type YIterator as Y, YDocStream as a, yArrayIterator as y };