export declare type DbbyValue = undefined | boolean | number | string | bigint; export declare type DbbyRow = { [P in keyof T]: DbbyValue; }; export interface DbbyConditions { set?: Partial<{ [P in keyof Row]: true; }>; equal?: Partial; less?: Partial; lessy?: Partial; greater?: Partial; greatery?: Partial; listed?: Partial; search?: Partial<{ [P in keyof Row]: string | RegExp; }>; notSet?: Partial<{ [P in keyof Row]: true; }>; notEqual?: Partial; notLess?: Partial; notLessy?: Partial; notGreater?: Partial; notGreatery?: Partial; notListed?: Partial; notSearch?: Partial<{ [P in keyof Row]: string | RegExp; }>; } export interface DbbyNonConditional { conditions: false | null; } export interface DbbySingleConditional { conditions: DbbyConditions; } export interface DbbyMultiConditional { multi: "and" | "or"; conditions: DbbyConditions[]; } export declare type DbbyUpsert = DbbyConditional & { upsert: Row; }; export declare type DbbyWrite = DbbyConditional & { write: Partial; }; export declare type DbbyWhole = DbbyConditional & { whole: Row; }; export declare type DbbyUpdate = DbbyWrite | DbbyWhole | DbbyUpsert; export declare type DbbyUpdateAmbiguated = DbbyWrite & DbbyWhole & DbbyUpsert; export declare type DbbyConditional = DbbySingleConditional | DbbyMultiConditional | DbbyNonConditional; export declare type DbbyOrder = Partial<{ [P in keyof Row]: "ascend" | "descend" | undefined; }>; export declare type DbbyPaginated = DbbyConditional & { limit?: number; offset?: number; order?: Partial<{ [P in keyof Row]: "ascend" | "descend" | undefined; }>; }; export declare type DbbyAssertion = DbbyConditional & { make: () => Promise; }; export interface DbbyTable { create(row: Row, ...args: Row[]): Promise; read(options: DbbyPaginated): Promise; one(options: DbbyConditional): Promise; assert(options: DbbyAssertion): Promise; update(options: DbbyUpdate): Promise; delete(options: DbbyConditional): Promise; count(options: DbbyConditional): Promise; } export interface DbbyStorage { save(table: Row[]): void; load(): Row[]; }