import { z } from "zod"; import type { OntologyConfig } from "./types.js"; /** * Schema for environment configuration */ export declare const EnvironmentConfigSchema: z.ZodObject<{ debug: z.ZodOptional; }, z.core.$loose>; /** * Schema for access group configuration */ export declare const AccessGroupConfigSchema: z.ZodObject<{ description: z.ZodString; }, z.core.$strip>; /** * Schema for entity definition */ export declare const EntityDefinitionSchema: z.ZodObject<{ description: z.ZodString; }, z.core.$strip>; /** * Schema for function definition */ export declare const FunctionDefinitionSchema: z.ZodObject<{ description: z.ZodString; access: z.ZodArray; entities: z.ZodArray; inputs: z.ZodCustom>, z.ZodType>>; outputs: z.ZodCustom>, z.ZodType>>; resolver: z.ZodCustom<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown>; isReadOnly: z.ZodBoolean; }, z.core.$strip>; /** * Schema for the full ontology configuration */ export declare const OntologyConfigSchema: z.ZodObject<{ name: z.ZodString; environments: z.ZodRecord; }, z.core.$loose>>; auth: z.ZodCustom<(req: Request) => unknown, (req: Request) => unknown>; accessGroups: z.ZodRecord>; entities: z.ZodOptional>>; functions: z.ZodRecord; entities: z.ZodArray; inputs: z.ZodCustom>, z.ZodType>>; outputs: z.ZodCustom>, z.ZodType>>; resolver: z.ZodCustom<(...args: unknown[]) => unknown, (...args: unknown[]) => unknown>; isReadOnly: z.ZodBoolean; }, z.core.$strip>>; }, z.core.$strip>; /** * Validate that all function access groups exist in accessGroups */ export declare function validateAccessGroups(config: z.infer): void; /** * Validate that all function entity references exist in entities */ export declare function validateEntityReferences(config: z.infer): void; /** * Validate that all fieldFrom() references point to existing functions */ export declare function validateFieldFromReferences(config: z.infer): void; /** * Validate that functions using userContext() will receive user data from auth. * This does a runtime check by calling auth with a mock request to verify it returns * an AuthResult with a user field. * * @param config - The full OntologyConfig (needed for the actual auth function) */ export declare function validateUserContextRequirements(config: OntologyConfig): Promise; /** * Validate that functions using organizationContext() will receive organization data from auth. * This does a runtime check by calling auth with a mock request to verify it returns * an AuthResult with an organization field. * * @param config - The full OntologyConfig (needed for the actual auth function) */ export declare function validateOrganizationContextRequirements(config: OntologyConfig): Promise;