import { AgentsManageDatabaseClient } from "../db/manage/manage-client.js"; //#region src/data-access/validation.d.ts /** * Validates that a project exists before performing database operations * This provides runtime validation even when foreign key constraints are not enforced */ declare const validateProjectExists: (db: AgentsManageDatabaseClient, tenantId: string, projectId: string) => Promise; /** * Wraps a database operation with project validation * Ensures the project exists before executing the operation */ declare const withProjectValidation: Promise>(db: AgentsManageDatabaseClient, operation: T) => (params: Parameters[0]) => Promise>; /** * Creates a validated version of data access functions * Automatically adds project validation to insert/update operations */ declare const createValidatedDataAccess: >(db: AgentsManageDatabaseClient, dataAccessFunctions: T) => T; //#endregion export { createValidatedDataAccess, validateProjectExists, withProjectValidation };