1 | import { CrossbowConfiguration } from "./config";
|
2 | import { UserInput } from "./input.resolve";
|
3 | import * as reports from "./reporter.resolve";
|
4 | import { Reporters } from "./reporter.resolve";
|
5 | export interface CLI {
|
6 | input: string[];
|
7 | flags: any;
|
8 | trailing?: string;
|
9 | command?: string;
|
10 | }
|
11 | export interface CrossbowInput {
|
12 | tasks: any;
|
13 | watch: any;
|
14 | options: any;
|
15 | env?: any;
|
16 | config?: any;
|
17 | }
|
18 | export interface CrossbowReporter {
|
19 | (report: reports.IncomingReport): void;
|
20 | }
|
21 | export interface PreparedInputErrors {
|
22 | type: reports.ReportTypes;
|
23 | data?: any;
|
24 | }
|
25 | export interface PreparedInput {
|
26 | cli: CLI;
|
27 | config: CrossbowConfiguration;
|
28 | reporters?: Reporters;
|
29 | reportFn?: CrossbowReporter;
|
30 | userInput: UserInput;
|
31 | errors: PreparedInputErrors[];
|
32 | }
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function handleIncoming<ReturnType>(preparedInput: PreparedInput): ReturnType;
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | export declare function getSetup(cli: CLI, input?: CrossbowInput): any;
|
48 | export default function (cli: CLI, input?: CrossbowInput): any;
|