/** * Coerce a form value into an array. * * The page-builder drawer holds list settings as real arrays, but the legacy * widget editor's `
` seeds them as a JSON *string* (a hidden input with * `defaultValue={JSON.stringify(...)}`), so a setting read can come back as a * string. Parse JSON strings, pass arrays through, and fall back otherwise. */ export declare function asArray(value: unknown, fallback: T[]): T[]; /** * Read a list-valued widget setting as a guaranteed array, and normalize the * underlying form state to a real array once on mount. * * Why: on the legacy `/admin/widgets/edit` page the `` seeds list * settings as a JSON string, which (a) crashes array consumers like * `RepeatableAccordion` (`items.map is not a function`) and (b) would fail the * widget's array schema on save. The page-builder drawer already holds an * array, so the normalize step no-ops there — it only fires for a string. */ export declare function useArraySetting(name: string, fallback: T[]): T[];