import BitId from '../../bit-id/bit-id'; import { BitObject, Ref } from '.'; declare type IndexItem = { id: { scope: string | null | undefined; name: string; }; isSymlink: boolean; hash: string; }; export default class ComponentsIndex { indexPath: string; index: IndexItem[]; constructor(indexPath: string, index?: IndexItem[]); static load(basePath: string): Promise; static create(basePath: string): ComponentsIndex; static reset(basePath: string): Promise; write(): Promise; getIds(): BitId[]; getIdsIncludesSymlinks(): BitId[]; getIdByHash(hash: string): BitId | null | undefined; getHashes(): string[]; getHashesIncludeSymlinks(): string[]; indexItemToBitId(indexItem: IndexItem): BitId; addMany(bitObjects: BitObject[]): boolean; addOne(bitObject: BitObject): boolean; removeMany(refs: Ref[]): boolean; removeOne(hash: string): boolean; deleteFile(): Promise; getPath(): string; isFileOnBitHub(): boolean; _find(hash: string): IndexItem | null | undefined; _exist(hash: string): boolean; static _composePath(basePath: string): string; } export {};