import type { Arguments } from 'yargs-parser'; /** parsed task object with selector and args */ export interface Task { selector: string; args: string[]; } /** * parse global arguments from an argv object * @param argv an arguments object containing the command line arguments * @returns an array of cleaned up global arguments as strings */ export declare function parseGlobalArgs(argv: Arguments): string[]; /** * parse task string and return a parsed task object with selector and args * @param spec the task string to parse * @param globalArgs the global arguments to be added to each task * @returns parsed task object with selector and args */ export declare function parseTaskSpec(spec: string, globalArgs: string[]): Task; /** * select tasks based on a pattern * @param tasks array of available tasks in the format 'task:subtask:subsubtask' * @param pattern pattern to match tasks ('*' wildcard for single level and '**' wildcard for multiple levels) * @returns array of tasks that match the pattern */ export declare function selectTasks(tasks: string[], pattern: string): string[]; //# sourceMappingURL=task.d.ts.map