import { default as React } from 'react'; import { default as Item, TableSelectItemProps } from './Item'; export type TableSelectItem = React.ReactElement; export interface TableSelectProps { /** Input Id / name */ id: string; /** Input label for accessibility */ label: string; /** * TableSelect.Item children * Children must be an array of TableSelect.Item components. */ children: TableSelectItem[]; /** Controlled selected value */ value?: string; /** Selection change event callback - called with value of selected item */ onChange?: (value: string) => void; /** Optional pinned footer content; use for action buttons */ renderFooter?: () => React.ReactNode; /** Whether the input is disabled */ isDisabled?: boolean; /** Whether the input has an error */ hasError?: boolean; } export declare const itemToString: (item: TableSelectItem | null) => string; interface TableSelectComponent extends React.ForwardRefExoticComponent> { Item: typeof Item; } /** * Table Field in the form of a select dropdown. * This component forward `ref` to the underlying hidden input. */ declare const TableSelect: TableSelectComponent; export default TableSelect; //# sourceMappingURL=index.d.ts.map