import { type ChangelogCommit } from '@/api/changelog'; import { type DiffLine } from './json-line-diff'; export interface SnapshotResult { diff: DiffLine[] | null; conflict: boolean; } /** * Per-commit whole-document diff (kit-dialect records only): state at the * commit vs state at its parent, over the backend's changelog/state * passthrough. Cached per commit id so re-toggling the view is free; a 409 * (pre-kit history) is cached too, so it doesn't re-fetch on every toggle. */ export declare function useSnapshotDiff(): { isLoading: import("vue").Ref; result: import("vue").Ref<{ diff: { type: "add" | "del" | "same" | "skip"; text: string; }[] | null; conflict: boolean; } | null, SnapshotResult | { diff: { type: "add" | "del" | "same" | "skip"; text: string; }[] | null; conflict: boolean; } | null>; load: (commit: ChangelogCommit) => Promise; };