import type { ComputedRef } from 'vue'; import type { ColumnType, Key } from './interface'; export type ContextSlots = { emptyText?: (...args: any[]) => any; expandIcon?: (...args: any[]) => any; title?: (...args: any[]) => any; footer?: (...args: any[]) => any; summary?: (...args: any[]) => any; bodyCell?: (...args: any[]) => any; expandColumnTitle?: (...args: any[]) => any; headerCell?: (...args: any[]) => any; customFilterIcon?: (...args: any[]) => any; customFilterDropdown?: (...args: any[]) => any; [key: string]: ((...args: any[]) => any) | undefined; }; type SlotsContextProps = ComputedRef; export declare const useProvideSlots: (props: SlotsContextProps) => void; export declare const useInjectSlots: () => SlotsContextProps; export type DragPlace = 'before' | 'after'; type ContextProps = { onResizeColumn: (w: number, column: ColumnType) => void; onResizeRow?: (height: number, record: any, index: number, rowKey?: Key) => void; /** Physical column drag (header). Keys are rendered column keys. */ onDragColumnSort?: (fromKey: Key, toKey: Key, place: DragPlace) => void; /** Physical row drag. Keys are rendered row keys. */ onDragRowSort?: (fromKey: Key, toKey: Key, place: DragPlace) => void; /** Validate whether fromRow can drop onto toRow (tree sibling check). */ canDropRow?: (fromKey: Key, toKey: Key) => boolean; /** Table-level column resize switch */ resizable?: boolean; rowResizable?: boolean; rowHeights?: Record; minRowHeight?: number; columnDraggable?: boolean; rowDraggable?: boolean; }; export declare const useProvideTableContext: (props: ContextProps) => void; export declare const useInjectTableContext: () => ContextProps; export {};