import { type ShallowRef } from "vue-demi"; export interface Orientation { alpha?: number; beta?: number; gamma?: number; cssRotationVariableName?: string; } export interface UseDeviceOrientationProps { elementRef: ShallowRef; onChange?: (value: Orientation) => void; } export declare const useDeviceOrientation: (props: UseDeviceOrientationProps) => { orientation: { alpha?: number | undefined; beta?: number | undefined; gamma?: number | undefined; cssRotationVariableName?: string | undefined; }; }; /** * @deprecated * 修复 ios 微信小程序 页面切换和 DeviceOrientationEvent.requestPermission 冲突问题。 * @param duration 毫秒 * @returns 在 duration 时间内是否页面被小程序关闭了 */ export declare function waitMiniProgramWebviewClose(duration: number): Promise;