export type SortBy = 'value' | 'cellColor' | 'fontColor' | 'icon'; export type SortMethod = 'stroke' | 'pinYin'; export type SortIconSet = '3Arrows' | '3ArrowsGray' | '3Flags' | '3TrafficLights1' | '3TrafficLights2' | '3Signs' | '3Symbols' | '3Symbols2' | '4Arrows' | '4ArrowsGray' | '4RedToBlack' | '4Rating' | '4TrafficLights' | '5Arrows' | '5ArrowsGray' | '5Rating' | '5Quarters'; export interface SortCondition { /** Column or row that drives this sort key. */ ref: string; descending?: boolean; sortBy?: SortBy; /** Reference to a custom-list defined name. */ customList?: string; /** Differential-style index (`` slot in the stylesheet). */ dxfId?: number; iconSet?: SortIconSet; iconId?: number; } export interface SortState { /** Range the sort applies to (`A1:D20`). */ ref: string; conditions: SortCondition[]; /** Sort columns instead of rows (rare). */ columnSort?: boolean; caseSensitive?: boolean; sortMethod?: SortMethod; } export declare const makeSortCondition: (opts: SortCondition) => SortCondition; export declare const makeSortState: (opts: Partial & { ref: string; }) => SortState;