| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import type { Param, TsInterfaceDeclaration } from '../types/types';
- export declare const enum FORMATS {
- ES = "es",
- CJS = "cjs"
- }
- type Types = {
- interface: Record<string, {
- returned: boolean;
- decl: TsInterfaceDeclaration;
- }>;
- class: string[];
- fn: Record<string, Param[]>;
- };
- interface Meta {
- exports: Record<string, 'var' | 'function' | 'class' | 'interface'>;
- types: Record<string, 'function' | 'class' | 'interface'>;
- }
- interface GenProxyCodeOptions {
- is_uni_modules: boolean;
- id: string;
- name: string;
- extname: string;
- namespace: string;
- androidComponents?: Record<string, string>;
- iosComponents?: Record<string, string>;
- format?: FORMATS;
- inputDir?: string;
- pluginRelativeDir?: string;
- moduleName?: string;
- moduleType?: string;
- types?: Types;
- meta?: Meta;
- }
- export declare function genProxyCode(module: string, options: GenProxyCodeOptions): Promise<string>;
- export declare function genComponentsCode(format: FORMATS | undefined, androidComponents: Record<string, string>, iosComponents: Record<string, string>): string;
- export declare function resolveRootIndex(module: string, options: GenProxyCodeOptions): string | false;
- export declare function resolveRootInterface(module: string, options: GenProxyCodeOptions): string | false;
- export declare function resolvePlatformIndexFilename(platform: 'app-android' | 'app-ios', module: string, options: GenProxyCodeOptions): string;
- export declare function resolvePlatformIndex(platform: 'app-android' | 'app-ios', module: string, options: GenProxyCodeOptions): string | false;
- export {};
|