/**
 * @fileoverview Generic handler to update an entity in Supabase.
 * @description Provides a reusable implementation for updating documents in PostgreSQL with validation.
 *
 * @version 0.1.0
 * @since 0.5.0
 * @author AMBROISE PARK Consulting
 */
import * as v from 'valibot';
import type { UserRole } from '@donotdev/core/server';
/** Request payload for updating an entity by ID with optional idempotency. */
export type UpdateEntityRequest = {
    id: string;
    payload: Record<string, any>;
    idempotencyKey?: string;
};
/**
 * Create a Supabase Edge Function handler for updating an entity.
 *
 * @param collection - The Supabase table name
 * @param documentSchema - The Valibot schema for document validation
 * @param requiredRole - Minimum role required for this operation
 * @returns A `(req: Request) => Promise<Response>` handler for Deno.serve
 */
export declare function createSupabaseUpdateEntity(collection: string, documentSchema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>, requiredRole: UserRole): (req: Request) => Promise<Response>;
