import { AllHTMLAttributes, RefObject } from 'react';
import { A11ySyntheticEvent } from '../utils';
declare type ValueOf = T[keyof T];
export declare type A11yPredefinedHtmlAttrs = {
events: {
mouse: 'onClick' | 'onDoubleClick' | 'onContextMenu' | 'onMouseUp' | 'onMouseDown';
focus: 'onFocus' | 'onBlur';
keyboard: 'onKeyDown' | 'onKeyUp';
input: 'onChange' | 'onCopy' | 'onCut' | 'onPaste' | 'onSelect' | 'onInput';
};
props: {
control: 'disabled' | 'name' | 'value';
text: 'required' | 'placeholder' | 'maxLength' | 'minLength';
stepper: 'min' | 'max' | 'step';
focus: 'tabIndex';
};
};
export declare type A11yDefinedNativeProps = AllHTMLAttributes, Props extends keyof A11yPredefinedHtmlAttrs['props'] = keyof A11yPredefinedHtmlAttrs['props']> = Pick>>;
export declare type A11yDefinedNativeEvents = AllHTMLAttributes, Events extends keyof A11yPredefinedHtmlAttrs['events'] = keyof A11yPredefinedHtmlAttrs['events']> = Pick>>;
declare type PredefinedEventsTuple = [AllHTMLAttributes, keyof A11yPredefinedHtmlAttrs['events']];
declare type PredefinedPropsTuple = [AllHTMLAttributes, keyof A11yPredefinedHtmlAttrs['props']];
export declare type A11yJoinNativeAttributes = (T['predefinedEvents'] extends PredefinedEventsTuple ? Omit, keyof T['ownProps']> : unknown) & (T['predefinedProps'] extends PredefinedPropsTuple ? Omit, keyof T['ownProps']> : unknown) & T['ownProps'];
export declare type A11ySyntheticHandler = (event: A11ySyntheticEvent) => void;
export declare type A11yMixedRefObject = RefObject | T>;
export declare type A11yBaseRef = {
getElement(): T | null;
};
export declare type A11yFocusableRef = {
focus(): void;
};
export declare type A11yOverlayRef = {
open(): void;
close(): void;
toggle(): void;
} & A11yBaseRef;
export {};