import type { DatabaseEntry, EntityType } from "./tstype";
export declare class Database {
    private _id;
    private entries;
    private path;
    private maxId;
    get id(): number;
    private constructor();
    private generateDatabaseID;
    static open(path: string): Database;
    getEntriesIterator(type: EntityType[]): Generator<DatabaseEntry>;
    insert(databaseEntry: DatabaseEntry): void;
    update(databaseEntry: DatabaseEntry, write: boolean): void;
    remove(id: number): void;
    has(id: number): boolean;
    newID(): number;
    write(): void;
    clear(): void;
}
export default Database;
//# sourceMappingURL=database.d.ts.map