index.d.ts 1.2 KB

123456789101112131415161718192021222324252627
  1. export * from './archive';
  2. export declare function mergeOptions(defaults: any, options: any): any;
  3. export declare function findExecutable(platform: string, runtimeDir: string): Promise<string>;
  4. export declare function findFFmpeg(platform: string, dir: string): Promise<string>;
  5. export declare function findRuntimeRoot(platform: string, runtimeDir: string): Promise<string>;
  6. export declare function findExcludableDependencies(dir: string, pkg: any): Promise<string[]>;
  7. export declare function tmpName(options?: any): Promise<string>;
  8. export declare function tmpFile(options?: any): Promise<{
  9. path: string;
  10. fd: number;
  11. cleanup: () => void;
  12. }>;
  13. export declare function tmpDir(options?: any): Promise<{
  14. path: string;
  15. cleanup: () => void;
  16. }>;
  17. export declare function fixWindowsVersion(version: string, build?: number): string;
  18. export declare function copyFileAsync(src: string, dest: string): Promise<void>;
  19. export declare function spawnAsync(executable: string, args: string[], options?: any): Promise<{
  20. code: number;
  21. signal: string;
  22. }>;
  23. export declare function execAsync(command: string, options?: any): Promise<{
  24. stdout: string;
  25. stderr: string;
  26. }>;