UNPKG

868 BTypeScriptView Raw
1import { GitHubRepoRef } from "@atomist/automation-client/lib/operations/common/GitHubRepoRef";
2import { LazyProjectLoader, WithLoadedLazyProject } from "../../spi/project/LazyProjectLoader";
3import { ProjectLoader, ProjectLoadingParameters } from "../../spi/project/ProjectLoader";
4/**
5 * Create a lazy view of the given project GitHub, which will materialize
6 * the remote project (usually by cloning) only if needed.
7 */
8export declare class GitHubLazyProjectLoader implements LazyProjectLoader {
9 private readonly delegate;
10 constructor(delegate: ProjectLoader);
11 doWithProject<T>(params: ProjectLoadingParameters, action: WithLoadedLazyProject<T>): Promise<T>;
12 get isLazy(): true;
13}
14export declare function fileContent(token: string, rr: GitHubRepoRef, path: string): Promise<string | undefined>;
15//# sourceMappingURL=GitHubLazyProjectLoader.d.ts.map
\No newline at end of file