import { Config } from "./config"; import type { Job } from "./job"; export declare const rootDir: string; export declare type GetJobFunction = (name: string) => JobInfo; export declare type LoadJobFunction = (type: string) => Job; export declare type LoadJobFromConfigFunction = (cfg: Config) => Job; export interface JobInfo { name: string; type: string; absolutePath: string; defaultConfig?: Config; canRun: boolean; errors: string[]; } export declare function loadConfigFromCommandLine(config: Config, cache: JobCache): Promise; export declare function loadConfigWithDefaults(config: Config, cache: JobCache): Config; export declare class JobCache { private jobMap; readonly jobNames: { [name: string]: string | string[]; }; jobs: JobInfo[]; constructor(jobs: { [type: string]: JobInfo; }); getJobInfo(name: string): JobInfo; getJobInfoFromConfig(cfg: Config): JobInfo; loadJob(name: string): Job; loadJobFromConfig(cfg: Config): Job; } export default function buildCache(pattern?: string[] | string): Promise; export declare function disableJobLoading(): void; export declare function enableJobLoading(): void;