export declare const descendingComparator: (a: T, b: T, orderBy: keyof T) => 1 | 0 | -1; export type Order = 'asc' | 'desc'; /** * This is a generic type parameter declaration that's using TypeScript's advanced type system features. Let's break it down: * 1. Key is a generic type parameter (like a placeholder for a type) * 2. extends keyof any is a constraint on what Key can be * * The keyof any part is particularly interesting: * - keyof is a TypeScript operator that takes an object type and produces a union of its keys * - any is TypeScript's top type that can represent any value * - keyof any evaluates to string | number | symbol, which are all the possible property key types in JavaScript * * So means that Key must be a type that could be used as an object property key - either a string, number, or symbol. * In the context of this sorting utility, this makes sense because the orderBy parameter needs to be a valid property key that can be used to access object properties when comparing them. */ export declare const getComparator: (order: Order, orderBy: Key) => ((a: { [key in Key]: number | string; }, b: { [key in Key]: number | string; }) => number); export declare const sortRows: (rows: any[], order: Order, orderBy: keyof any) => any[]; export declare const visibleRowsSorted: (rows: any[], order: Order, orderBy: keyof any, page: number, pageSize: number) => any[]; export declare const visibleRows: (rows: any[], page: number, pageSize: number) => any[];