import type { Atom } from '../utils/types.js'; type Diff = { previous: T | undefined; current: T; }; type NonInitialDiff = { previous: T; current: T; }; type Options = { skipInitial?: boolean; }; type DiffForOptions = O extends { skipInitial: true; } ? NonInitialDiff : Diff; declare const difference: (atom: Atom, options?: O) => Omit, "observe"> & { observe: Atom>["observe"]; }; export default difference;