import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Override the total items selected text. * @default (totalSelected) => `${totalSelected} item${totalSelected === 1 ? "" : "s"} selected` */ formatTotalSelected?: (totalSelected: number) => string; /** * Use a boolean to show or hide the toolbar. */ 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; } > {}