/**
 * @fileoverview Generic function to retrieve a single entity.
 * @description Provides a reusable implementation for retrieving documents from Firestore with visibility filtering.
 *
 * @version 0.1.0
 * @since 0.0.1
 * @author AMBROISE PARK Consulting
 */
import * as v from 'valibot';
import type { EntityOwnershipConfig, UserRole } from '@donotdev/core/server';
import type { CallableFunction } from 'firebase-functions/v2/https';
export type GetEntityRequest = {
    id: string;
};
/**
 * Generic function to get entities from 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
 * @param ownership - Optional ownership config for visibility: 'owner' field masking
 * @returns Firebase callable function
 */
export declare const getEntity: (collection: string, documentSchema: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>, requiredRole: UserRole, customSchema?: v.BaseSchema<unknown, any, v.BaseIssue<unknown>>, ownership?: EntityOwnershipConfig) => CallableFunction<GetEntityRequest, Promise<any>>;
