import { AnyRecord, NoContentRecord } from "../records/record.js";
export declare enum QuerySortProperty {
    CREATED_AT = "createdAt",
    RECEIVED_AT = "receivedAt",
    VERSION_CREATED_AT = "version.createdAt",
    VERSION_RECEIVED_AT = "version.receivedAt"
}
export declare enum QuerySortDirection {
    ASCENDING = "ascending",
    DESCENDING = "descending"
}
export type QuerySort = [
    `${QuerySortProperty}` | (string & NonNullable<unknown>),
    `${QuerySortDirection}`
];
declare function querySortToString(querySort: QuerySort): string;
declare function querySortToDirection(querySort: QuerySort): QuerySortDirection;
declare function findDateInRecord(record: AnyRecord | NoContentRecord, querySort: QuerySort): any;
export declare const QuerySort: {
    default: QuerySort;
    syncDefault: QuerySort;
    toString: typeof querySortToString;
    toDirection: typeof querySortToDirection;
    findDateInRecord: typeof findDateInRecord;
};
export {};
