1 | import type {SyncOptions} from '../arguments/options.js';
|
2 | import type {SyncResult} from '../return/result.js';
|
3 | import type {TemplateString} from './template.js';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare const execaSync: ExecaSyncMethod<{}>;
|
32 |
|
33 |
|
34 |
|
35 | export type ExecaSyncMethod<OptionsType extends SyncOptions = SyncOptions> =
|
36 | & ExecaSyncBind<OptionsType>
|
37 | & ExecaSyncTemplate<OptionsType>
|
38 | & ExecaSyncArrayLong<OptionsType>
|
39 | & ExecaSyncArrayShort<OptionsType>;
|
40 |
|
41 |
|
42 | type ExecaSyncBind<OptionsType extends SyncOptions> =
|
43 | <NewOptionsType extends SyncOptions = {}>(options: NewOptionsType)
|
44 | => ExecaSyncMethod<OptionsType & NewOptionsType>;
|
45 |
|
46 |
|
47 | type ExecaSyncTemplate<OptionsType extends SyncOptions> =
|
48 | (...templateString: TemplateString)
|
49 | => SyncResult<OptionsType>;
|
50 |
|
51 |
|
52 | type ExecaSyncArrayLong<OptionsType extends SyncOptions> =
|
53 | <NewOptionsType extends SyncOptions = {}>(file: string | URL, arguments?: readonly string[], options?: NewOptionsType)
|
54 | => SyncResult<OptionsType & NewOptionsType>;
|
55 |
|
56 |
|
57 | type ExecaSyncArrayShort<OptionsType extends SyncOptions> =
|
58 | <NewOptionsType extends SyncOptions = {}>(file: string | URL, options?: NewOptionsType)
|
59 | => SyncResult<OptionsType & NewOptionsType>;
|