import { SearchItem } from '../types/guillotina'; import { Context } from 'react'; export declare const ItemsActionsCtx: Context<{ selected: { all: boolean; [key: string]: boolean; }; onSelectOneItem?: (item: SearchItem) => void; onSelectAllItems?: (chedked: boolean) => void; onAction?: (action: string) => void; }>; /** * Actions to apply after select some items * Ex: Delete, Move, Copy... */ interface PropsItemsActionsProvider { items: SearchItem[]; children: React.ReactNode; } export declare function ItemsActionsProvider({ items, children, }: PropsItemsActionsProvider): import("react/jsx-runtime").JSX.Element; export declare const useItemsActions: () => { onAction: (action: string) => void; onSelectOneItem: (item: SearchItem) => void; onSelectAllItems: (chedked: boolean) => void; selected: { [key: string]: boolean; all: boolean; }; }; /** * Checkbox component without props that consume the ItemsActionsContext * and it select/unselect all items of the page. */ export declare function AllItemsCheckbox({ dataTest }: { dataTest?: string; }): import("react/jsx-runtime").JSX.Element; /** * Checkbox component to select ONE item. */ interface PropsItemCheckbox { item: SearchItem; dataTest?: string; } export declare function ItemCheckbox({ item, dataTest }: PropsItemCheckbox): import("react/jsx-runtime").JSX.Element; /** * Dropdown to choose some action to apply to the selected items. */ export declare function ItemsActionsDropdown(): import("react/jsx-runtime").JSX.Element; export {};