export declare class MiaQuery { pageCurrent: number; lastPage: number; itemPerPage: number; filters: { [k: string]: any; }; wheres: Array; joins: Array<{ table: string; column: string; relation: string; }>; withs: Array; search: string; /** * @deprecated */ ordType: { title: string; asc: number; }; orders: Array<{ field: string; type: string; }>; addJoin(table: string, column: string, relation: string): void; removeJoin(index: number): void; resetJoins(): void; /** * * @param key * @param value */ addWhereDate(key: string, value: string): void; /** * Remove all where by type date */ removeWhereAllDate(): void; /** * * @param key * @param value 2020-01-01 */ addWhereWeek(key: string, value: string): void; /** * Remove all where by type date */ removeWhereAllWeek(): void; /** * * @param key * @param value */ addWhereMonth(key: string, value: string): void; /** * Remove all where by type date */ removeWhereAllMonth(): void; /** * * @param key * @param value */ addWhereYear(key: string, value: string): void; /** * Remove all where by type date */ removeWhereAllYear(): void; /** * * @param query * @param values */ addWhereRaw(query: string, values: []): void; /** * Remove all where by type between */ removeWhereAllRaw(): void; /** * Remove all where by type * @param type */ removeWhereByType(type: string): void; /** * * @param key * @param from * @param to */ addWhereBetween(key: string, from: any, to: any): void; /** * Remove all where by type between */ removeWhereAllBetween(): void; addWhereEqual(key: string, value: string): void; addWhereGreaterThan(key: string, value: string): void; addWhereLessThan(key: string, value: string): void; addWhereIn(key: string, values: any): void; addWhere(key: string, value: any): void; /** * @deprecated * @param key * @param values */ addwhereIn(key: string, values: any): void; addwhereNotIn(key: string, values: Array): void; /** * @deprecated * @param key * @param value */ addwhereLike(key: string, value: any): void; addWhereLike(key: string, value: any): void; addWhereLikes(keys: Array, value: any): void; /** * @deprecated * @param key * @param from * @param to */ addwhereBetween(key: string, from: string, to: string): void; removeWhere(key: string): void; getWhere(): string; resetWhere(): void; addWith(name: string): void; removeWith(name: string): void; resetWith(): void; setPagination(lastPage: number, itemPerPage: number): void; /** * * @param field * @param type */ addOrder(field: string, type: string): void; /** * * @param field */ addOrderAsc(field: string): void; /** * * @param field */ addOrderDesc(field: string): void; /** * * @param field */ removeOrder(field: string): void; toParams(): { page: number; where: string; wheres: any[]; joins: { table: string; column: string; relation: string; }[]; withs: string[]; with: string[]; search: string; orders: { field: string; type: string; }[]; limit: number; }; }