import { type CSSProperties } from 'react'; /** Which ends of a sideways scroller hide some of its content. `start` and `end` follow the * line's direction, so `start` is the right in a right-to-left line. */ export type HiddenEnds = { start: boolean; end: boolean; }; /** * Tracks which ends of a row that scrolls sideways hide some of its content, kept up to date * as it scrolls, resizes or settles. Put `ref` and `onScroll` on the element that scrolls * (`overflow-x: auto`), and give its `style` `fadeMask(ends)` to fade the ends that hide * something. While `active` is false, as for a row that wraps instead, no end is hidden. */ export declare function useHiddenEnds(active?: boolean): { ref: import("react").RefObject; ends: HiddenEnds; onScroll: () => void; }; /** * A mask style that fades whichever `ends` hide content, over `reach` from each edge (1.25rem * unless given), leaving the outermost `clear` of it fully hidden, such as under an arrow that * sits there. Returns undefined when nothing is hidden, so a row that fits shows whole. * * The fade runs left to right. In a right-to-left line, set `--fade-end: left` on the same * element (`rtl:[--fade-end:left]`) so it follows the line. */ export declare function fadeMask({ start, end }: HiddenEnds, reach?: string, clear?: string): CSSProperties | undefined;