import type { Transaction, UpdateMutationFnParams } from '@tanstack/react-db'; import { Effect } from 'effect'; import { type DecodedEntity, type DecodedSingleEntity } from '../../../core/index.js'; import type { AnyUnkeyedESchema } from '../../../eschema/index.js'; import type { WriteError } from '../../domain/sync-error/index.js'; import { type CollectionName } from '../../domain/identity/index.js'; import { type OutboxRuntime } from '../../outbox/outbox/index.js'; import type { CollectionItem } from '../../domain/collection-item/index.js'; import { type PaceStrategyFactory } from '../pacing/index.js'; import type { EffectRunner } from '../../platform/effect-runner/index.js'; import type { CollectionFlow } from '../../flow/sync-flow/index.js'; export declare const SINGLE_ITEM_KEY = "__single__"; export declare const buildSingleItemMutations: (args: { schema: S; collectionName: CollectionName; applyToSyncReplica: (entities: DecodedEntity[]) => Effect.Effect; onUpdate?: ((payload: { updates: Partial; }) => Effect.Effect, unknown, R>) | undefined; pacing?: PaceStrategyFactory | undefined; outbox: OutboxRuntime | null; replayed: Effect.Effect; runner: EffectRunner; flow: () => CollectionFlow | null; }) => { onUpdate: (({ transaction, }: UpdateMutationFnParams, string>) => Promise) | undefined; pacedUpdate: (changes: Partial, optimistic: (changes: Partial) => void) => Transaction>; decode: (value: unknown) => Effect.Effect; pick: (after: S["Type"], changed: ReadonlyArray) => Partial; }; //# sourceMappingURL=single-item.d.ts.map