uni-ticket-system/node_modules/@dcloudio/uni-cli-shared/dist/uts.d.ts
2023-12-05 10:11:10 +08:00

26 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/// <reference types="node" />
/// <reference types="node" />
import * as UTSCompiler from '@dcloudio/uni-uts-v1';
import type { EasycomMatcher } from './easycom';
/**
* 解析 app 平台的 uts 插件任意平台android|ios存在即可
* @param id
* @param importer
* @returns
*/
export declare function resolveUTSAppModule(id: string, importer: string, includeUTSSDK?: boolean): string | undefined;
export declare function resolveUTSModule(id: string, importer: string, includeUTSSDK?: boolean): string | undefined;
export declare function resolveUTSCompiler(): typeof UTSCompiler;
export declare function isUTSComponent(name: string): boolean;
export declare function parseUTSComponent(name: string, type: 'kotlin' | 'swift'): {
className: string;
namespace: string;
source: string;
} | undefined;
export declare function initUTSComponents(inputDir: string, platform: UniApp.PLATFORM): EasycomMatcher[];
export declare function parseKotlinPackageWithPluginId(id: string, is_uni_modules: boolean): string;
export declare function parseSwiftPackageWithPluginId(id: string, is_uni_modules: boolean): string;
export type UTSTargetLanguage = typeof process.env.UNI_UTS_TARGET_LANGUAGE;
export declare const parseUniExtApiNamespacesOnce: (platform: typeof process.env.UNI_UTS_PLATFORM, language: UTSTargetLanguage) => Record<string, [string, string]>;
export declare const parseUniExtApiNamespacesJsOnce: (platform: typeof process.env.UNI_UTS_PLATFORM, language: UTSTargetLanguage) => Record<string, [string, string]>;