index.d.ts 859 B

12345678910111213141516171819202122
  1. import { generateCodeFrameWithKotlinStacktrace, generateCodeFrameWithSwiftStacktrace } from './legacy';
  2. export declare const sourcemap: {
  3. generateCodeFrameWithKotlinStacktrace: typeof generateCodeFrameWithKotlinStacktrace;
  4. generateCodeFrameWithSwiftStacktrace: typeof generateCodeFrameWithSwiftStacktrace;
  5. };
  6. export { compileApp } from './uvue/index';
  7. export * from './sourceMap';
  8. export { compile as toKotlin } from './kotlin';
  9. export { compile as toSwift } from './swift';
  10. export interface CompileResult {
  11. code: string;
  12. deps: string[];
  13. encrypt: boolean;
  14. meta?: any;
  15. dir: string;
  16. }
  17. interface CompilerOptions {
  18. isX: boolean;
  19. isPlugin: boolean;
  20. extApis?: Record<string, [string, string]>;
  21. }
  22. export declare function compile(pluginDir: string, { isX, isPlugin, extApis }?: CompilerOptions): Promise<CompileResult | void>;