/// <reference types="node" />
import Repository from './repository';
import BitObject from './object';
export default class Ref {
    hash: string;
    constructor(hash: string);
    toString(): string;
    load(repository: Repository, throws?: boolean): Promise<BitObject>;
    loadSync(repo: Repository, throws?: boolean): BitObject;
    loadRaw(repo: Repository): Promise<Buffer>;
    static from(hash: string): Ref;
}
