/**
 * @fileoverview Generic function to update an entity.
 * @description Provides a reusable implementation for updating documents in Firestore with validation.
 *
 * @version 0.1.0
 * @since 0.0.1
 * @author AMBROISE PARK Consulting
 */
import * as v from 'valibot';
import type { UserRole } from '@donotdev/core/server';
import type { CallableFunction } from 'firebase-functions/v2/https';
export type UpdateEntityRequest = {
    id: string;
    payload: Record<string, any>;
    idempotencyKey?: string;
};
/**
 * Generic function to update 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 updateEntity: (collection: string, documentSchema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>, requiredRole: UserRole, customSchema?: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>) => CallableFunction<UpdateEntityRequest, Promise<any>>;
