import type { SanitizedCollectionConfig } from '../../collections/config/types.js'; import type { FlattenedField } from '../../fields/config/types.js'; import type { SanitizedGlobalConfig } from '../../globals/config/types.js'; import type { PayloadRequest, Sort } from '../../types/index.js'; type Args = { overrideAccess: boolean; req: PayloadRequest; sort?: Sort; versionFields?: FlattenedField[]; } & ({ collectionConfig: SanitizedCollectionConfig; globalConfig?: undefined; } | { collectionConfig?: undefined; globalConfig: SanitizedGlobalConfig; }); /** * Ensures sort paths are subject to the same field-read access checks as query `where` paths, * since database sorting happens before response-time field redaction. */ export declare const validateSortQuery: ({ collectionConfig, globalConfig, overrideAccess, req, sort, versionFields, }: Args) => Promise; export {}; //# sourceMappingURL=validateSortQuery.d.ts.map