/// <reference types="lodash" />
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<string, any> | null;
declare const setStatusToDraftCurry: import("lodash").CurriedFunction2<Struct.SingleTypeSchema | Struct.CollectionTypeSchema, Modules.Documents.Params.All, Modules.Documents.Params.All>;
declare const defaultToDraftCurry: import("lodash").CurriedFunction1<Modules.Documents.Params.All, Modules.Documents.Params.All>;
declare const defaultStatusCurry: import("lodash").CurriedFunction2<Struct.SingleTypeSchema | Struct.CollectionTypeSchema, Modules.Documents.Params.All, Modules.Documents.Params.All>;
declare const filterDataPublishedAtCurry: import("lodash").CurriedFunction1<Modules.Documents.Params.All, Modules.Documents.Params.All>;
declare const statusToLookupCurry: import("lodash").CurriedFunction2<Struct.SingleTypeSchema | Struct.CollectionTypeSchema, Modules.Documents.Params.All, Modules.Documents.Params.All>;
declare const statusToDataCurry: import("lodash").CurriedFunction2<Struct.SingleTypeSchema | Struct.CollectionTypeSchema, Modules.Documents.Params.All, Modules.Documents.Params.All>;
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