import { PackageInfo } from "./PackageInfo"; import { PackageSource } from "./PackageSource"; /** * Acquires OpenT2T packages from a GitHub repo. * * To acquire from multiple repos and/or paths, use a PackageSourceUnion. */ export declare class GithubPackageSource extends PackageSource { readonly repo: string; readonly path: string; readonly ref: string; constructor(repo: string, path: string, ref: string); /** * Gets information about an OpenT2T package from the source * (potentially without downloading the whole package). * * @param {string} name Name of the package * @returns {(Promise; /** * Downloads or copies a package to a target (cache) directory. * * @param {string} name Name of the package * @param {string} targetDirectory Directory where the package is to be extracted */ copyPackageAsync(name: string, targetDirectory: string): Promise; }