1 | /**
|
2 | * Copyright (c) Meta Platforms, Inc. and affiliates.
|
3 | *
|
4 | * This source code is licensed under the MIT license found in the
|
5 | * LICENSE file in the root directory of this source tree.
|
6 | *
|
7 | * @flow strict
|
8 | * @format
|
9 | */
|
10 |
|
11 | import type {TurboModule} from '../../TurboModule/RCTExport';
|
12 |
|
13 | import * as TurboModuleRegistry from '../../TurboModule/TurboModuleRegistry';
|
14 |
|
15 | export interface Spec extends TurboModule {
|
16 | +addListener: (eventName: string) => void;
|
17 | +removeListeners: (count: number) => void;
|
18 | }
|
19 |
|
20 | export default (TurboModuleRegistry.get<Spec>('KeyboardObserver'): ?Spec);
|