import * as v from 'valibot';
import type { UserRole } from '@donotdev/core/server';
import type { CallableFunction } from 'firebase-functions/v2/https';
export type CreateEntityRequest = {
    payload: Record<string, any>;
    idempotencyKey?: string;
};
/**
 * Generic function to create entities in any Firestore collection
 * @param collection - The Firestore collection name
 * @param documentSchema - The Valibot schema for document validation
 * @param requiredRole - Minimum role required for this operation
 * @param customSchema - Optional custom request schema
 * @returns Firebase callable function
 */
export declare const createEntity: (collection: string, createDocumentSchema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>, draftDocumentSchema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>, requiredRole: UserRole, customSchema?: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>) => CallableFunction<CreateEntityRequest, Promise<any>>;
