/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow
 */
import type { CallbackRef } from '../../__types__';
import { useCallback } from 'react';
import { addEvent } from '#internal/addEvent';
import { useRefCallback } from '#internal/useRefCallback';
export type InteractOutsideConfig = {
  disabled?: ?boolean,
  onInteractOutside?: (e: any) => void,
};
const clickEventType = 'click';
declare export function useInteractOutside(config: InteractOutsideConfig): CallbackRef;