import { LogInstance } from 'larvitutils'; export type matchDate = { field: string; value: string; operation?: 'gt' | 'lt' | 'eq'; }; export type notEqual = { field: string; value: string; }; export type UsersOptions = { db: any; limit?: string; log?: LogInstance; showInactive?: boolean; showInactiveOnly?: boolean; matchDateFields?: matchDate[]; matchDates?: matchDate[]; matchAllFields?: Record>; matchAllFieldsQ?: Record>; matchExistingFields?: string[]; matchFieldHasValue?: string[]; matchFieldHasNoValue?: string[]; notEqualFields?: notEqual[]; offset?: string; order?: { by?: string; direction?: 'asc' | 'desc'; }; q?: string; returnFields?: string[]; uuids?: string | string[]; createdAfter?: Date; updatedAfter?: Date; }; export type UserFields = { [key: string]: string[]; }; export type UserModel = { uuid: string; username: string; created?: string; updated?: string; fields: UserFields; }; export declare class Users { private log; private lUtils; private options; constructor(options: UsersOptions); /** * Gets distinct data values from speciefied field for all users * * @param {string} fieldName - the name of the field * @returns {Array} - an array with values liek ['value1', 'value2'] */ getFieldData(fieldName: string): Promise; get(): Promise<{ users: Array; totalElements: number; }>; } //# sourceMappingURL=users.d.ts.map