uni-ticket-system/node_modules/@dcloudio/uni-cli-shared/dist/uts.d.ts

26 lines
1.5 KiB
TypeScript
Raw Normal View History

2023-12-05 02:11:10 +00:00
/// <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]>;