import type { DropdownProps } from '../../../base'; export type SortDirection = 'asc' | 'desc'; export interface SortOption { /** * 排序的文本 */ label: string; /** * 排序的方向 */ direction: SortDirection; /** * 排序对应的字段 */ field: string; /** * 数据埋点ID */ dataTrackId?: string; } export interface SortProps extends Omit { /** * 排序的选项 */ options: SortOption[]; /** * 当前排序的字段 */ field: string; /** * 当前排序的方向 */ direction: SortDirection; /** * 按钮的文本 */ sortText?: string; /** * 数据埋点ID */ dataTrackId?: string; /** * 排序的回调 */ onChange?: (field: string, direction: SortDirection) => Promise | void; } export declare const Sort: React.FC;