import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Override the total items selected text. */ formatTotalSelected?: (totalSelected: number) => string; /** * Use a boolean to show or hide the toolbar. * @default undefined */ active?: undefined | boolean; /** * Specify the selected IDs for standalone usage. * This is unnecessary if using this component with `DataTable`. * @default [] */ selectedIds?: ReadonlyArray; cancel?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ToolbarBatchActionsProps = Omit< $RestProps, keyof $Props > & $Props; export default class ToolbarBatchActions extends SvelteComponentTyped< ToolbarBatchActionsProps, { cancel: CustomEvent }, { default: Record; cancel: Record } > {}