import { Source } from '../resolve';
export declare class ModuleReader {
    readonly fetcher: ModuleFetcher;
    checkout(path: string): Promise<void>;
    sha(path: string): Promise<string>;
    read(path: string): Promise<string | null>;
}
export declare class ModuleFetcher {
    init(source: Source): Promise<void>;
    sha(source: Source): Promise<string>;
    checkout(source: Source): Promise<boolean>;
    refresh(source: Source): Promise<void>;
    cwd({ host, owner, repo, ref }: Source): string;
    private git;
    private origin;
}
//# sourceMappingURL=fetch.d.ts.map