import { type FieldFormatters } from './utils'; interface Props> { /** Data for the table as an array. */ data: T[]; /** A title that runs above the table. */ title?: string; /** A block of text that runs above the table. */ dek?: string; /** A footnote that runs below the table. */ notes?: string; /** A source line that runs below the table. */ source?: string; /** List of the fields to include in the table. By default everything goes. */ includedFields?: string[]; /** Whether or not the table is cutoff after a set number of rows. */ truncated?: boolean; /** If the table is truncated, how many rows to allow before the cutoff. */ truncateLength?: number; /** Whether or not the table is paginated after a set number of rows. */ paginated?: boolean; /** The default page size. */ pageSize?: number; /** Whether or not searches are allowed. */ searchable?: boolean; /** The placeholder text that appears in the search box. */ searchPlaceholder?: string; /** A field to offer uses as an interactive filter. */ filterField?: string; /** The label to place above the filter box. */ filterLabel?: string; /** Whether or not sorts are allowed. */ sortable?: boolean; /** The column to sort by. By default it's the first header. */ sortField?: string; /** The columns that are allowed to sort. It's all of them by default. */ sortableFields?: string[]; /** The direction of the sort. By default it's ascending. */ sortDirection?: 'ascending' | 'descending'; /** Custom field formatting functions. Should be keyed to the name of the field. */ fieldFormatters?: FieldFormatters; /** Width of the component within the text well. */ width?: 'normal' | 'wide' | 'wider' | 'widest' | 'fluid'; /** Add an ID to target with SCSS. */ id?: string; /** Add a class to target with SCSS. */ class?: string; } /** * A data-driven table from an array of records, with optional search, filtering, sorting, pagination and custom cell formatters. * * [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-graphics-table--docs) */ declare const Table: import("svelte").Component>, {}, "sortDirection">; type Table = ReturnType; export default Table;