import { FormEvent, MouseEvent, ReactNode } from 'react'; import { LinksPosition } from '../../Components/CheckboxTree/CheckboxTree'; import './wdk-CheckboxList.scss'; declare type Item = { value: string; display: ReactNode; }; declare type Props = { /** Value to use for "name" attribute of checkbox form input element **/ name?: string; /** Array of items to display in the list **/ items: Item[]; /** * Default list of selected items. If provided, these items will be checked * for the initial render. */ defaultSelectedItems?: string[]; /** * List of selected items. * * - If omitted, this component will track state locally. * * - If provided, items in this list will be checked, regardless of the value * of `defaultSelectedItems`. Also, state will not be tracked locally. * `onChange` should be used to detect changes and update externally * tracked state. */ selectedItems?: string[]; /** * Callback function that will be called when the set of selected items * changes. The function will be called with two arguments: * * - The event that triggered the change. This gives consumers a change to * revert the state of the checked items. * * - An array of checked items. */ onChange?: (event: FormEvent, item: Item) => void; /** * Called when the "select all" link is clicked. * If state is managed locally, all items will be checked. */ onSelectAll?: (event: MouseEvent) => void; /** * Called when the "clear all" link is clicked. * If state is managed locall, all items will be unchecked. */ onClearAll?: (event: MouseEvent) => void; linksPosition?: LinksPosition; }; declare const _default: import("../../Utils/ComponentUtils").ComponentWrapper & { LinksPosition: typeof LinksPosition; }; export default _default; //# sourceMappingURL=NativeCheckboxList.d.ts.map