1 | import type { BasicTarget } from '../utils/domTarget';
|
2 | export interface Options {
|
3 | onFocus?: (e: FocusEvent) => void;
|
4 | onBlur?: (e: FocusEvent) => void;
|
5 | onChange?: (isFocusWithin: boolean) => void;
|
6 | }
|
7 | export default function useFocusWithin(target: BasicTarget, options?: Options): boolean;
|