export { a as YDocStream, Y as YIterator, y as yArrayIterator } from '../ydoc-D56bpIow.js'; import * as Y from 'yjs'; import { YEvent } from 'yjs'; import { E as EventMessage } from '../sse-BiMYWw38.js'; import '../index.d-B8KPCV0w.js'; type SSEIterator = AsyncGenerator; type ComponentIterator = SSEIterator; declare class YDocSseHtmx { base: string; doc: Y.Doc; private docStream; constructor(base: string, doc?: Y.Doc); subdocs(swap: string, abortSignal?: AbortSignal): SSEIterator; docSse(): SSEIterator; component(component: string, type: Y.AbstractType>): ComponentIterator; sse(): ReadableStream; } type MapChange = [ key: string, { oldValue: T | undefined; newValue: T; action: "add" | "update" | "delete"; origin?: any; } ]; /** * Iterate over a Y.Map and yield changes * @param map * @returns */ declare function yMapIterate = Y.Map>(map: TMap): AsyncGenerator>; type YTMap = Y.Map> = { [Property in keyof Omit]: TMap[Property]; } & { toJSON(): T; get(key: TKey): T[TKey]; set(key: TKey, value: TValue): TValue; }; declare function t(map: Y.Map): YTMap; export { YDocSseHtmx, type YTMap, t, yMapIterate };