import type { Config } from '../../config/types';
import type { Field } from './types';
type Args = {
    config: Config;
    existingFieldNames?: Set<string>;
    fields: Field[];
    /**
     * If not null, will validate that upload and relationship fields do not relate to a collection that is not in this array.
     * This validation will be skipped if validRelationships is null.
     */
    validRelationships: null | string[];
};
export declare const sanitizeFields: ({ config, existingFieldNames, fields, validRelationships, }: Args) => Field[];
export {};
//# sourceMappingURL=sanitize.d.ts.map