UNPKG

1.2 kBTypeScriptView Raw
1import Taro from '@tarojs/api';
2import { history } from '@tarojs/router';
3declare const Behavior: any, getEnv: any, ENV_TYPE: any, Link: any, interceptors: any, interceptorify: any, Current: any, options: any, eventCenter: any, Events: any, preload: any;
4declare const taro: typeof Taro;
5declare const requirePlugin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6declare const initPxTransform: ({ designWidth, deviceRatio, baseFontSize, unitPrecision, targetUnit }: {
7 designWidth?: number | undefined;
8 deviceRatio?: TaroGeneral.TDeviceRatio | undefined;
9 baseFontSize?: number | undefined;
10 unitPrecision?: number | undefined;
11 targetUnit?: string | undefined;
12}) => void;
13declare const pxTransform: (size?: number) => any;
14declare const canIUseWebp: () => boolean;
15declare const getAppInfo: () => {
16 platform: string;
17 taroVersion: string;
18 designWidth: any;
19};
20export { taro as default, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getAppInfo, getEnv, history, initPxTransform, interceptorify, interceptors, Link, options, preload, pxTransform, requirePlugin };