1 | import Taro from '@tarojs/api';
|
2 | /**
|
3 | * 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
|
4 | */
|
5 | declare const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
|
6 | /**
|
7 | * 监听窗口尺寸变化事件
|
8 | */
|
9 | declare const onWindowResize: typeof Taro.onWindowResize;
|
10 | /**
|
11 | * 取消监听窗口尺寸变化事件
|
12 | */
|
13 | declare const offWindowResize: typeof Taro.offWindowResize;
|
14 | export { setWindowSize, onWindowResize, offWindowResize };
|