import { TableBaseData, TableColumn } from "./types.js"; import { TableColumnCheck, UseTableOptions } from "@soybeanjs/hooks"; //#region src/components/table/hooks.d.ts type UseTableOptions$1 = Omit, Pagination>, 'pagination' | 'getColumnChecks' | 'getColumns'>; declare function useTable$1(options: UseTableOptions$1): { loading: import("vue").ShallowRef; empty: import("vue").ShallowRef; tableData: import("vue").Ref; columns: import("vue").ComputedRef[]>; columnChecks: import("vue").Ref; reloadColumns: () => void; fetchData: () => Promise; }; type UsePaginatedTableOptions = UseTableOptions$1 & { page?: number; pageSize?: number; /** * Whether to fetch data when page or pageSize changes. * * Set this to `false` if you want to handle pagination change manually, such as fetching data in a parent component. * * In this case, you can listen to `update:page` and `update:pageSize` events to get the current page and page size. * * @default true */ fetchOnPaginationChange?: boolean; }; declare function usePaginatedTable(options: UsePaginatedTableOptions): { loading: import("vue").ShallowRef; empty: import("vue").ShallowRef; tableData: import("vue").Ref; columns: import("vue").ComputedRef[]>; columnChecks: import("vue").Ref; reloadColumns: () => void; fetchData: () => Promise; page: import("vue").ShallowRef; pageSize: import("vue").ShallowRef; total: import("vue").ShallowRef; }; //#endregion export { usePaginatedTable, useTable$1 as useTable };