import React from 'react'; /** * Form field wrapper around the admin FileBrowser modal. Exposes a plain * value/onChange API so widget setting forms can drop it next to other * fields without re-implementing the modal toggle, the thumbnail row, and * the path-normalisation defence (older FileBrowser builds emitted * `/assets//file.jpg`, double-slash and all). * * Callers wire it via react-hook-form's `Controller` or via the * `useScopedFormContext` setValue + watch pattern. */ export interface ImagePickerFieldProps { value: string; onChange: (next: string) => void; onLoadDimensions?: (dims: { width: number; height: number; }) => void; /** Visual height of the thumbnail. Defaults to a 56-px tall preview. */ thumbHeightClass?: string; /** Visual width of the thumbnail. Defaults to a 96-px wide preview. */ thumbWidthClass?: string; /** "Select" / "Replace" button copy override. */ selectLabel?: string; replaceLabel?: string; clearLabel?: string; /** When true, the picker renders only a button (no thumb row). */ compact?: boolean; } export declare function ImagePickerField({ value, onChange, onLoadDimensions, thumbHeightClass, thumbWidthClass, selectLabel, replaceLabel, clearLabel, compact }: ImagePickerFieldProps): React.JSX.Element;