import type { EntityContext } from '#blokkli/types'; export type EditableFieldOverride = { /** The resolved DOM element, or null if not found. */ element: HTMLElement | null; /** The original value captured when the override was created. */ originalValue: string; /** The field type (plain or markup). */ fieldType: 'plain' | 'markup'; /** Apply a value — updates live preview via the correct strategy. */ setValue(value: string): void; /** Apply pre-built diff HTML (with / tags) to the DOM element. */ setDiffHtml(html: string): void; /** Restore the original value (shorthand for setValue(originalValue)). */ restore(): void; }; /** * Create an override for an editable field. * * Resolves the element and determines the correct update strategy * (direct DOM, mutatedItemProps, or component event), captures the * original value, and returns methods to set/restore the field value. * * If the field element is not found or the field type is unsupported * (e.g. 'table'), returns a no-op override with empty values. */ export declare function useEditableFieldOverride(fieldName: string, host: EntityContext): EditableFieldOverride;