import { default as React, FC, PropsWithChildren } from 'react'; import { SortDirection } from './utils'; import { SortTheme } from './SortTheme'; export interface SortProps extends PropsWithChildren { /** * Additional css classnames to apply */ className?: string; /** * Additional css classnames to apply to the icon */ iconClassName?: string; /** * Whether the sort is disabled */ disabled?: boolean; /** * The current sort direction */ direction?: SortDirection; /** * The callback to call when the sort is toggled */ onSort?: (direction: SortDirection) => void; /** * The icon to display * @default DownArrowIcon */ icon?: React.ComponentType<{ className?: string; }>; /** * The neutral icon to display. */ neutralIcon?: React.ComponentType<{ className?: string; }>; /** * Additional css classnames to apply to the neutral icon. */ neutralIconClassName?: string; /** * Theme for the Sort. */ theme?: SortTheme; } export declare const Sort: FC;