import { OnDestroy } from '@angular/core'; import type { MutateOptions, SyncCollectionOptions, SyncCollectionStatus } from '../client/syncCollection'; import type { CollaborativeTextOptions } from '../client/collaborativeText'; import type { TextState } from '../crdt'; /** * Angular binding for live sync-engine collections (the Tier 3 store). Inject * the service and call `connect(options)` to get `data`/`status`/`error` signals * maintained from the WebSocket diff stream, plus an optimistic `mutate`. All * opened collections close on the service's destroy. * * SSR-safe: the socket only opens in a browser, so server rendering is inert. */ export declare class SyncCollectionService implements OnDestroy { private readonly collections; private readonly texts; connect(options: SyncCollectionOptions): { data: import("@angular/core").Signal; error: import("@angular/core").Signal; mutate: (mutateOptions: MutateOptions) => Promise; status: import("@angular/core").Signal; }; /** * Connect a CRDT collaborative-text field. Returns `text`/`status` signals * (maintained from the merge of every client's edits) plus a `setText` that * broadcasts the merge. Concurrent edits converge with no clobbering and no * custom server mutation. SSR-safe (inert on the server). */ collaborativeText(options: CollaborativeTextOptions): { anchorAt: (index: number) => string | null; indexOfAnchor: (anchor: string | null) => number; ready: import("@angular/core").Signal; setText: (next: string) => void | undefined; status: import("@angular/core").Signal; text: import("@angular/core").Signal; }; ngOnDestroy(): void; }