1 | import { Repository } from './repository';
|
2 | import { CloneOptions } from './clone-options';
|
3 |
|
4 | export namespace Clone {
|
5 | const enum LOCAL {
|
6 | AUTO = 0,
|
7 | LOCAL = 1,
|
8 | NO_LOCAL = 2,
|
9 | NO_LINKS = 3,
|
10 | }
|
11 | }
|
12 |
|
13 | export class Clone {
|
14 | /**
|
15 | * Patch repository cloning to automatically coerce objects.
|
16 | */
|
17 | static clone(url: string, localPath: string, options?: CloneOptions): Promise<Repository>;
|
18 |
|
19 | static initOptions(opts: CloneOptions, version: number): number;
|
20 | }
|