import { type UseJetStreamDialogSubscriptionOptions, type UseJetStreamDialogSubscriptionReturn } from '../types'; /** * How long the page must have been out of sight before coming back counts as an * absence worth resyncing for. Alt-tabbing must not churn the consumer; a * window that sat in the tray must not come back showing a stale conversation. */ export declare const RESYNC_AFTER_HIDDEN_MS = 10000; /** * Subscribe to a chat dialog stream via a JetStream **ephemeral OrderedConsumer**. * * - Subject: `chat.{dialogId}.{topic}` * - When `optStartSeq` is a number, the consumer resumes at `optStartSeq + 1` * (`DeliverPolicy.ByStartSequence`). When null/undefined, it live-tails * (`DeliverPolicy.New`). * - On reconnect, the consumer is recreated starting from the highest stream * sequence we've already observed + 1, so no chunk is replayed or skipped. * - Consumer is ephemeral with `AckPolicy.None` and the client's default * inactivity threshold (overridable via `inactiveThresholdMs`). * - `reconnectionCount` also counts consumer recreations and post-absence * resyncs, not just NATS reconnects — see the counter's docs. Callers refetch * persisted history whenever it moves. */ export declare function useJetStreamDialogSubscription({ enabled, dialogId, streamName, topic, optStartSeq, onEvent, onConnect, onDisconnect, onSubscribed, onBeforeReconnect, getNatsWsUrl, clientConfig, reconnectionBackoff, inactiveThresholdMs, resyncSignal, }: UseJetStreamDialogSubscriptionOptions): UseJetStreamDialogSubscriptionReturn; //# sourceMappingURL=use-jetstream-dialog-subscription.d.ts.map