/** * Remove a single GUID from a multilist-shaped field on a single item. * * scai's bulk `cleanup field-set --mode remove` handles the scoped / * cross-item case; this verb is the single-item primitive — the * "I have one item and one GUID to unlink" operation. Promoted from * the `scripting/helpers/multilist.ts` `removeRef` helper so it's * usable without a script entry point (which agents and ad-hoc * operators don't reach for). */ import { type HygieneCommonOptions } from "../shared.js"; export interface CleanupMultilistRemoveRefOptions extends HygieneCommonOptions { /** Sitecore itemId of the target item (GUID, with or without braces). */ itemId: string; /** Field name to mutate — must be a multilist-shaped field. */ fieldName: string; /** GUID to remove. Case-insensitive, brace-tolerant. */ refToRemove: string; /** Standard write-gate plumbing — caller flips when consent established. */ allowWrite?: boolean; /** Plan-only mode. Default false (apply). */ whatIf?: boolean; } export interface CleanupMultilistRemoveRefResult { itemId: string; fieldName: string; refToRemove: string; before: string; after: string; status: "would-change" | "changed" | "no-op"; } export declare const runCleanupMultilistRemoveRef: (options: CleanupMultilistRemoveRefOptions) => Promise;