import type { BaseStrategy, DebounceStrategyOptions, QueueStrategyOptions, ThrottleStrategyOptions } from '@tanstack/react-db'; import type { CoalesceStrategyOptions } from './coalesce-strategy.js'; import { coalesceStrategy as makeCoalesceStrategy } from './coalesce-strategy.js'; import { buildPacedUpdate as makePacedUpdate } from './build-paced-update.js'; export declare const coalesceStrategy: typeof makeCoalesceStrategy; export declare const buildPacedUpdate: typeof makePacedUpdate; /** A thunk that produces a fresh pace-strategy instance per in-flight gate. */ export type PaceStrategyFactory = () => BaseStrategy; /** * The pace-strategy kit selected via a collection's `updatePacing` field. Controls * *when* `pacedUpdate`'s optimistic mutations are committed to the server. Each entry * takes the strategy's options and returns a factory: the engine instantiates one * strategy per in-flight gate (per key for keyed `sync`, once for `singleItemSync`), * so gates never leak across keys. `coalesce` is Sync's own single-flight pacer; * the rest re-expose TanStack DB's built-ins. */ export declare const paceStrategy: { coalesce: (options?: CoalesceStrategyOptions) => PaceStrategyFactory; debounce: (options: DebounceStrategyOptions) => PaceStrategyFactory; throttle: (options: ThrottleStrategyOptions) => PaceStrategyFactory; queue: (options?: QueueStrategyOptions) => PaceStrategyFactory; }; //# sourceMappingURL=pacing.d.ts.map