import { KeyboardEvent } from 'react'; import { CheckboxV2CheckedState } from './checkboxV2.types'; import { SelectorV2Size } from '../../SelectorV2/selectorV2.types'; import { CheckboxV2TokensType } from './checkboxV2.tokens'; export declare const getCheckboxDataState: (checked: boolean | "indeterminate") => string; /** * Gets the icon color based on checkbox state */ export declare const getCheckboxIconColor: (tokens: CheckboxV2TokensType, currentChecked: boolean | "indeterminate", disabled: boolean) => string; /** * Gets the text color based on checkbox state */ export declare const getCheckboxTextColor: (tokens: CheckboxV2TokensType, disabled: boolean, error: boolean) => string; /** * Gets the subtext color based on checkbox state */ export declare const getCheckboxSubtextColor: (tokens: CheckboxV2TokensType, disabled: boolean, error: boolean) => string; /** * Gets the text properties for checkbox labels */ export declare const getCheckboxTextProps: (tokens: CheckboxV2TokensType, size: SelectorV2Size, disabled: boolean, error: boolean) => { fontSize: string; fontWeight: string; color: string; }; /** * Gets the subtext properties for checkbox */ export declare const getCheckboxSubtextProps: (tokens: CheckboxV2TokensType, size: SelectorV2Size, disabled: boolean, error: boolean) => { fontSize: string; color: string; }; /** * Gets label styles for checkbox components */ export declare const getCheckboxLabelStyles: (disabled: boolean) => { cursor: "not-allowed" | "pointer"; display: "flex"; alignItems: "center"; margin: number; padding: number; }; /** * Gets accessibility attributes for checkbox */ export declare const getAccessibilityAttributes: (uniqueId: string, isIndeterminate: boolean) => { role: string; 'aria-checked': string | undefined; 'aria-labelledby': string; 'aria-describedby': string; }; /** * Generates subtext ID for aria-describedby connection * WCAG 4.1.2: aria-describedby must connect to subtext/error messages */ export declare const getSubtextId: (uniqueId: string, hasSubtext: boolean) => string | undefined; /** * Merges custom aria-describedby with subtext ID * WCAG 4.1.2: Supports multiple IDs space-separated */ export declare const mergeCheckboxV2AriaDescribedBy: (subtextId: string | undefined, customAriaDescribedBy?: string) => string | undefined; /** * Handles keyboard interaction for checkbox root. * - On Enter: toggles checked state (indeterminate -> true, otherwise toggles boolean) */ export declare const handleCheckboxKeyDown: (e: KeyboardEvent, checked: boolean | "indeterminate" | undefined, disabled: boolean, onCheckedChange?: (checked: boolean | "indeterminate") => void) => void; export declare const getCheckboxState: (checked: boolean | "indeterminate") => CheckboxV2CheckedState;