/** * Convex functions surfaces: `convex.queries` and `convex.mutations`. * * Queries are reactive reads over `ctx.db` (reads are not governed). Mutations * are governed writes: each IR command becomes a Convex `mutation` that runs the * command's policies → guards → constraints (rendered from IR via the * fail-closed expression resolver), applies the command's mutate actions, * appends an event row, and fires matched reactions. * * Governance is rendered FAIL CLOSED: any guard/policy/constraint the resolver * cannot fully map produces a hard diagnostic AND a denying `throw`, never a * silent pass. */ import type { IR } from '../../ir'; import type { ProjectionDiagnostic } from '../interface'; export interface FunctionsResult { code: string; diagnostics: ProjectionDiagnostic[]; } export declare function generateQueries(ir: IR, rawOptions: Record | undefined): FunctionsResult; export declare function generateMutations(ir: IR, rawOptions: Record | undefined): FunctionsResult; //# sourceMappingURL=functions.d.ts.map