declare type OneOrMany = T | T[]; declare type ValueWhere = OneOrMany; export declare abstract class DatabaseRule { /** * Set a "where" constraint on the query. * * @param name * @param args */ where(name: any, ...args: any[]): this; /** * Set a "where not" constraint on the query. * * @param column * @param value */ whereNot(column: string, value: string): this; /** * Set a "where null" constraint on the query. * * @param column */ whereNull(column: string): this; /** * Set a "where not null" constraint on the query. * * @param column */ whereNotNull(column: string): this; /** * Set a "where in" constraint on the query. * * @param column * @param value */ whereIn(column: string, value: ValueWhere): this; /** * Set a "where not in" constraint on the query. * * @param column * @param value */ whereNotIn(column: string, value: ValueWhere): this; /** * Register a custom query callback. * @param callback */ using(callback: (query: any) => any): this; } export {};