/**
 * 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';
/**
 * Types
 */

type KeyboardEventsConfig = {
  disabled?: ?boolean,
  onKeyDown?: (e: any) => void,
  onKeyDownCapture?: (e: any) => void,
  onKeyUp?: (e: any) => void,
  onKeyUpCapture?: (e: any) => void,
};
/**
 * useKeyboardEvents implementation
 */

const captureOptions = {
  capture: true
}; // TODO: https://github.com/w3c/uievents/issues/202

declare export function useKeyboard(config: KeyboardEventsConfig): CallbackRef;