import { NativeModule } from 'expo'; import type { ExpoOrientationEvents } from './ScreenOrientation.types'; import { Orientation, OrientationLock, WebOrientationLock } from './ScreenOrientation.types'; declare global { interface Screen { msOrientation?: Screen['orientation']['type']; mozOrientation?: Screen['orientation']; mozUnlockOrientation?(): boolean | undefined; msUnlockOrientation?(): boolean | undefined; unlockOrientation?(): boolean | undefined; } } declare class ExpoScreenOrientation extends NativeModule { orientation: ScreenOrientation | null; emitOrientationEvent: () => Promise; startObserving(): void; stopObserving(): void; supportsOrientationLockAsync(orientationLock: OrientationLock): Promise; getPlatformOrientationLockAsync(): Promise; getOrientationAsync(): Promise; lockAsync(orientationLock: OrientationLock): Promise; lockPlatformAsync(webOrientationLock: WebOrientationLock): Promise; unlockAsync(): Promise; } declare const _default: ExpoScreenOrientation; export default _default;