import type { Domain } from '../domain/domain.js'; /** Answers the current value of a tag in a domain, or `undefined` when the tag is not its own. */ export type DataSnapshotProvider = (domain: Domain, tag: string) => unknown | Promise; /** Registers a provider; returns the call that removes it. */ export declare function registerDataSnapshotProvider(provider: DataSnapshotProvider): () => void; /** * The current value of a tag: the first provider's answer that is not `undefined`. A provider that fails does not * stop the subscription; the next one is asked. */ export declare function dataSnapshotOf(domain: Domain, tag: string): Promise; /** * A subscription stream that starts with the current value. The live stream is started at once, so a change published * while the current value is being read is not lost; it follows the current value. Closing the stream closes the live * one, whether or not the current value has arrived. */ export declare function withDataSnapshot(live: AsyncIterable, snapshot: () => Promise): AsyncIterableIterator;