import React from "react"; export interface SelectableField { /** Unique value committed on confirm. */ field_name: string; /** Human-readable label. */ field_label: string; } /** Modal that lets the user pick which fields to include, confirmed via `onConfirm`. */ export interface FieldSelectModalProps { isOpen: boolean; onClose: () => void; fields: SelectableField[]; /** Called with the chosen field_name values. */ onConfirm: (selected: string[]) => void; title?: string; confirmText?: string; loadingText?: string; isLoading?: boolean; /** Pre-selected field_name values (defaults to all selected); re-applied whenever this or `fields` changes reference while open. */ defaultSelected?: string[]; /** Columns in the field grid. */ columns?: number; /** Show the search box (auto-hidden under 8 fields by default); "Select all" still applies to every field, not just visible matches. */ searchable?: boolean; } /** Modal checkbox-grid for choosing which fields/columns to show — a bulk toggle UI, not an inline Select/SelectV2 field. */ declare const FieldSelectModal: React.FC; export default FieldSelectModal;