UNPKG

1.27 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;
4type ModifiedTaro = Omit<typeof Taro, 'router'> & {
5 router: any;
6};
7declare const taro: ModifiedTaro;
8declare const requirePlugin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9declare const initPxTransform: ({ designWidth, deviceRatio, baseFontSize, unitPrecision, targetUnit }: {
10 designWidth?: number | undefined;
11 deviceRatio?: TaroGeneral.TDeviceRatio | undefined;
12 baseFontSize?: number | undefined;
13 unitPrecision?: number | undefined;
14 targetUnit?: string | undefined;
15}) => void;
16declare const pxTransform: (size?: number) => any;
17declare const canIUseWebp: () => boolean;
18declare const getAppInfo: () => {
19 platform: string;
20 taroVersion: string;
21 designWidth: any;
22};
23export { taro as default, Behavior, canIUseWebp, Current, ENV_TYPE, eventCenter, Events, getAppInfo, getEnv, history, initPxTransform, interceptorify, interceptors, Link, options, preload, pxTransform, requirePlugin };