import ShxRecord from './ShxRecord'; import ShxIterator from './ShxIterator'; import IQueryFilter from '../shared/IQueryFilter'; import OpenerSync from '../base/OpenerSync'; import { FileStream } from 'ginkgoch-filestream'; export default class Shx extends OpenerSync { filePath: string; _flag: string; _fd?: number; _totalSize: number; _stream?: FileStream; constructor(filePath: string, flag?: string); /** * @override */ _open(): void; /** * @override */ _close(): void; count(): number; /** * Gets the shx records with offset and length information. * @param id The id of shx record. Starts from 1. */ get(id: number): { id: number; offset: number; length: number; }; records(filter?: IQueryFilter): Array; iterator(): ShxIterator; /** * Remove record by id. * @param {number} id The id of shx record. Starts from 1. */ remove(id: number): void; /** * Update record by id. * @param id The id of shx record. Starts from 1. * @param offset The offset content. * @param length The length content. */ update(record: ShxRecord): void; push(offset: number, length: number): void; _invalidCache(): void; private static _getRecordBuff; private _getOffsetById; private get __fd(); private get __reader(); } //# sourceMappingURL=Shx.d.ts.map