import { MongoClient, MongoClientOptions, FindCursor } from 'mongodb'; export interface IPagination { perPage?: number | null; page?: number | null; } export interface ISort { field?: string | null; order?: number | null; } export interface ITextSearch { search?: string | null; language?: string | null; caseSensitive?: boolean | null; diacriticSensitive?: boolean | null; } export declare function mongoConnect(uri: string, options?: MongoClientOptions): Promise; export declare const mapTextSearchToMongo: (value: any) => any; export declare const mapFilterToMongo: (value: any) => any; export declare const mapUpdateToMongo: (value: any) => any; export declare function paginateCursor(cursor: FindCursor, { pagination, sort }: { pagination?: IPagination | null; sort?: ISort | null; }): FindCursor;