export type DraftChange = { value: T[]; reason: 'removeOption' | 'selectOption'; option: T; } | { value: T[]; reason: 'clear'; option?: undefined; }; /** * The `onChange` calls that turn `applied` into `draft` the way ticking in the attached list would * have (ASMA-8468 D-007): one `removeOption`/`selectOption` per changed option, carrying * `details.option`, so consumers that act per tick keep working. Removals come first, additions in * the order they were ticked. Emptying a non-empty value is one `clear`, as the field's × does. No * change, no calls. */ export declare const getDraftChanges: (applied: readonly T[], draft: readonly T[], isEqual: (a: T, b: T) => boolean) => DraftChange[];