UNPKG

773 BTypeScriptView Raw
1import { SimpleGitBase } from '../../typings';
2import { outputHandler, SimpleGitExecutor, SimpleGitTask, SimpleGitTaskCallback } from './types';
3export declare class SimpleGitApi implements SimpleGitBase {
4 private _executor;
5 constructor(_executor: SimpleGitExecutor);
6 protected _runTask<T>(task: SimpleGitTask<T>, then?: SimpleGitTaskCallback<T>): any;
7 add(files: string | string[]): any;
8 cwd(directory: string | {
9 path: string;
10 root?: boolean;
11 }): any;
12 hashObject(path: string, write: boolean | unknown): any;
13 init(bare?: boolean | unknown): any;
14 merge(): any;
15 mergeFromTo(remote: string, branch: string): any;
16 outputHandler(handler: outputHandler): this;
17 push(): any;
18 stash(): any;
19 status(): any;
20}