///
import type { Modules, Struct, UID } from '@strapi/types';
/**
* Parses and sanitizes the hasPublishedVersion parameter.
* Returns normalized boolean value or undefined if not provided.
* Throws ValidationError for invalid input (400 response).
*/
declare const parseHasPublishedVersion: (value: unknown) => boolean | undefined;
/**
* Synchronous helper that returns the "has published version" condition for a given model.
* Returns the documentId subquery condition, or null if the model doesn't use draft & publish.
*
* This is used by the filters function in transform/query.ts so that the condition
* is applied to both root and nested (populate) queries.
*/
declare const getHasPublishedVersionCondition: (uid: UID.Schema, hasPublishedVersion: boolean) => Record | null;
declare const setStatusToDraftCurry: import("lodash").CurriedFunction2;
declare const defaultToDraftCurry: import("lodash").CurriedFunction1;
declare const defaultStatusCurry: import("lodash").CurriedFunction2;
declare const filterDataPublishedAtCurry: import("lodash").CurriedFunction1;
declare const statusToLookupCurry: import("lodash").CurriedFunction2;
declare const statusToDataCurry: import("lodash").CurriedFunction2;
export { setStatusToDraftCurry as setStatusToDraft, defaultToDraftCurry as defaultToDraft, defaultStatusCurry as defaultStatus, filterDataPublishedAtCurry as filterDataPublishedAt, statusToLookupCurry as statusToLookup, statusToDataCurry as statusToData, parseHasPublishedVersion, getHasPublishedVersionCondition, };
//# sourceMappingURL=draft-and-publish.d.ts.map