import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["button"]; type $Props = { /** * Bind the table's header definitions. * Pass the same array to `DataTable`. * @default [] */ headers?: ReadonlyArray>; /** * Restrict which columns can be toggled, by key. * Headers outside this list are omitted from the menu and keep their * current visibility. Unset (the default) makes every column toggleable. */ toggleableKeys?: ReadonlyArray | undefined; /** * Specify the trigger's accessible label and the menu's label. * @default "Column visibility" */ labelText?: string; /** * Specify the menu alignment relative to the trigger. * @default "end" */ align?: "start" | "end"; /** * Set to `true` to open the menu. * @default false */ open?: boolean; /** * Obtain a reference to the trigger HTML element. * @default null */ ref?: null | HTMLButtonElement; [key: `data-${string}`]: unknown; }; export type ToolbarColumnVisibilityProps = Omit<$RestProps, keyof $Props> & $Props; export default class ToolbarColumnVisibility extends SvelteComponentTyped< ToolbarColumnVisibilityProps, { change: CustomEvent<{ headers: ReadonlyArray>; settings: import("../utils/column-settings.js").ColumnSettings; }>; close: CustomEvent<{ trigger: "escape-key" | "outside-click" | "select"; }>; }, Record > {}