import { FocusEvent } from 'react';
export type UseFocusWithin = {
    onChildFocus?: (e: FocusEvent) => void;
    onChildBlur?: (e: FocusEvent) => void;
    onFocus?: (e: FocusEvent) => void;
    onBlur?: (e: FocusEvent) => void;
};
export declare function useFocusWithin({ onChildFocus, onChildBlur, onBlur, onFocus, }: UseFocusWithin): {
    onBlur: (e: FocusEvent) => void;
    onFocus: (e: FocusEvent) => void;
    hasFocusedChild: (e: FocusEvent) => boolean;
    hasBluredChild: (e: FocusEvent) => boolean;
};
