export declare const DefaultPerPage = 30;
export declare const DefaultFilterExprLimit = 200;
export declare const DefaultSortExprLimit = 8;
export declare const MaxPerPage = 1000;
export declare const MaxFilterLength = 3500;
export declare const MaxSortFieldLength = 255;
export declare const PageQueryParam = "page";
export declare const PerPageQueryParam = "perPage";
export declare const SortQueryParam = "sort";
export declare const FilterQueryParam = "filter";
export declare const SkipTotalQueryParam = "skipTotal";
export type SearchResult<T> = {
    items: T[];
    page: number;
    perPage: number;
    totalItems: number;
    totalPages: number;
};
export type SearchQuery = {
    select: string;
    count?: string;
    params?: unknown[];
};
export type SqlExpr = {
    sql: string;
    params: unknown[];
};
export declare class SearchError extends Error {
}
export declare const ErrEmptyQuery: SearchError;
export declare const ErrSortExprLimit: SearchError;
export declare const ErrFilterExprLimit: SearchError;
export declare const ErrFilterLengthLimit: SearchError;
export declare const ErrSortFieldLengthLimit: SearchError;
