cordova-res.d.ts 1.1 KB

1234567891011121314151617181920
  1. import { CommandLineOptions, IConfig, ILogger, IShell, IShellRunOptions, NpmClient } from '../definitions';
  2. import { FatalException } from './errors';
  3. export declare const SUPPORTED_PLATFORMS: readonly string[];
  4. export interface CordovaResSchema {
  5. platform?: string;
  6. }
  7. export declare function createCordovaResArgs({ platform }: CordovaResSchema, options: CommandLineOptions): string[];
  8. export interface RunCordovaResDeps {
  9. readonly config: IConfig;
  10. readonly log: ILogger;
  11. readonly shell: IShell;
  12. }
  13. export declare function runCordovaRes({ config, log, shell }: RunCordovaResDeps, args: readonly string[], options?: IShellRunOptions): Promise<void>;
  14. export interface CheckCordovaResDeps {
  15. readonly config: IConfig;
  16. }
  17. export declare function checkCordovaRes({ config }: CheckCordovaResDeps): Promise<void>;
  18. export declare function findCordovaRes(): Promise<string | undefined>;
  19. export declare function createCordovaResNotFoundError(npmClient: NpmClient): Promise<FatalException>;
  20. export declare function createCordovaResNotFoundMessage(npmClient: NpmClient): Promise<string>;