/**
 * Generic Entity Handler
 *
 * Unified CRUD handler for all entities with dual authentication support.
 * Used by catch-all routes /api/v1/[entity]/ and /api/v1/[entity]/[id]/
 *
 * Phase 2 - Two-Layer Security Model:
 * - RLS (Database): Team isolation only - IDENTICAL for all entities
 * - App (Endpoints): User isolation based on access.shared config
 *
 * Team context is required for all entity operations via x-team-id header.
 */
import { NextRequest, NextResponse } from 'next/server';
/**
 * Generic LIST handler (GET /api/v1/[entity])
 */
export declare function handleGenericList(request: NextRequest): Promise<NextResponse>;
/**
 * Generic CREATE handler (POST /api/v1/[entity])
 */
export declare function handleGenericCreate(request: NextRequest): Promise<NextResponse>;
/**
 * Generic READ handler (GET /api/v1/[entity]/[id])
 */
export declare function handleGenericRead(request: NextRequest, { params }: {
    params: Promise<{
        entity: string;
        id: string;
    }>;
}): Promise<NextResponse>;
/**
 * Generic UPDATE handler (PATCH /api/v1/[entity]/[id])
 */
export declare function handleGenericUpdate(request: NextRequest, { params }: {
    params: Promise<{
        entity: string;
        id: string;
    }>;
}): Promise<NextResponse>;
/**
 * Generic DELETE handler (DELETE /api/v1/[entity]/[id])
 */
export declare function handleGenericDelete(request: NextRequest, { params }: {
    params: Promise<{
        entity: string;
        id: string;
    }>;
}): Promise<NextResponse>;
/**
 * Handle CORS preflight for all generic endpoints
 */
export declare function handleGenericOptions(request: NextRequest): Promise<NextResponse>;
//# sourceMappingURL=generic-handler.d.ts.map