import { Oid } from './oid'; import { OdbObject } from './odb-object'; import { OdbExpandId } from './odb-expand-id'; import { Object } from './object'; export namespace Odb { const enum STREAM { RDONLY = 2, WRONLY = 4, RW = 6, } } export class Odb { static open(objectsDir: string): Promise; addDiskAlternate(path: string): number; free(): void; read(id: Oid): Promise; write(data: Buffer, len: number, type: Object.TYPE): Promise; expandIds(ids: OdbExpandId, count: number): number; }