import { ReactNode } from 'react'; import { SingleSelectV2TokensType } from './singleSelectV2.tokens'; import { SingleSelectV2Size, SingleSelectV2Variant, FlattenedItem, SingleSelectV2GroupType, SingleSelectV2ItemType, SingleSelectV2SkeletonProps } from './singleSelectV2.types'; export declare const defaultSingleSelectV2Skeleton: SingleSelectV2SkeletonProps; export declare const DROPDOWN_DATA_ATTR: "data-dropdown=\"dropdown\""; export declare const MENU_SCROLL_SELECTORS: readonly ["[data-dropdown=\"dropdown\"]", "[role=\"listbox\"]", "[role=\"menu\"]", "[data-radix-popper-content-wrapper]", "[data-radix-dropdown-menu-content]"]; export declare const DEFAULT_END_REACHED_THRESHOLD = 200; export type AriaAttributes = { 'aria-describedby'?: string; 'aria-label'?: string; 'aria-labelledby'?: string; 'aria-invalid'?: boolean; [key: string]: unknown; }; export type ExtractedAriaProps = { 'aria-describedby'?: string; 'aria-label'?: string; 'aria-labelledby'?: string; restProps: Record; }; export type AccessibilitySetupOptions = { name?: string; generatedId: string; label?: string; hintText?: string; error?: boolean; errorMessage?: string; rest?: Record; prefix?: string; needsMenuId?: boolean; }; export type AccessibilitySetupResult = { uniqueName: string; labelId?: string; hintTextId?: string; errorMessageId?: string; menuId?: string; ariaAttributes: AriaAttributes; }; export declare function getSingleSelectV2BorderRadius(size: SingleSelectV2Size, variant: SingleSelectV2Variant, singleSelectGroupPosition: 'center' | 'left' | 'right' | undefined, tokens: SingleSelectV2TokensType): { borderRadius: string; borderRight?: string; }; export declare function getSingleSelectV2ValueLabelMap(groups: SingleSelectV2GroupType[]): Record; export declare const generateAccessibilityIds: (uniqueName: string, options: { hasLabel?: boolean; hasHintText?: boolean; hasErrorMessage?: boolean; needsMenuId?: boolean; }) => { labelId?: string; hintTextId?: string; errorMessageId?: string; menuId?: string; }; export declare const extractSingleSelectV2AriaProps: (rest: Record | undefined) => ExtractedAriaProps; export declare const mergeSingleSelectV2AriaDescribedBy: (...ids: (string | undefined)[]) => string | undefined; export declare const buildAriaAttributes: (options: { error?: boolean; ariaLabelledBy?: string; ariaDescribedBy?: string; ariaLabel?: string; restProps?: Record; }) => AriaAttributes; export declare const setupAccessibility: (options: AccessibilitySetupOptions) => AccessibilitySetupResult; export declare function flattenGroups(groups: SingleSelectV2GroupType[]): FlattenedItem[]; export declare function filterSingleSelectV2MenuGroups(groups: SingleSelectV2GroupType[], searchText: string): SingleSelectV2GroupType[]; export declare function filterSingleSelectV2Item(item: SingleSelectV2ItemType, lower: string): SingleSelectV2ItemType | null; export declare function isTooltipWrappingTrigger(trigger: ReactNode): boolean; export declare function getMenuItemIndex(filteredGroups: SingleSelectV2GroupType[], groupId: number, itemIndex: number): number; export declare const VIRTUAL_ROW_ESTIMATES: { readonly label: 32; readonly separator: 8; readonly item: 38; readonly itemWithSubLabel: 58; }; export declare function getVirtualRowEstimate(flattened: FlattenedItem[], index: number): number; export declare function getItemOrdinalIndex(flattened: FlattenedItem[], flatIndex: number): number;