import { z } from 'zod'; import type { def } from '#src/schema/creator/index.js'; export declare const createModelScalarFieldSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots>, { modelSlot: import("#src/references/index.js").DefinitionEntityType; }>; export type ModelScalarFieldConfig = def.InferOutput; export type ModelScalarFieldConfigInput = def.InferInput; export declare const REFERENTIAL_ACTIONS: readonly ["Cascade", "Restrict", "NoAction", "SetNull", "SetDefault"]; export declare const createModelRelationFieldSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots>, { modelSlot: import("#src/references/index.js").DefinitionEntityType; }>; export type ModelRelationFieldConfig = def.InferOutput; export type ModelRelationFieldConfigInput = def.InferInput; export declare const createModelUniqueConstraintSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots>, { modelSlot: import("#src/references/index.js").DefinitionEntityType; }>; export type ModelUniqueConstraintConfig = def.InferOutput; export type ModelUniqueConstraintConfigInput = def.InferInput; export declare const createModelIndexSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots>, { modelSlot: import("#src/references/index.js").DefinitionEntityType; }>; export type ModelIndexConfig = def.InferOutput; export type ModelIndexConfigInput = def.InferInput; export declare const createModelServiceSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots; fields: z.ZodOptional>>>; transformerNames: z.ZodOptional>>>; globalRoles: z.ZodPrefault>>>; }, z.core.$strip>>; update: z.ZodPrefault; fields: z.ZodOptional>>>; transformerNames: z.ZodOptional>>>; globalRoles: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; }, z.core.$strip>>; delete: z.ZodPrefault; globalRoles: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; }, z.core.$strip>>; transformers: z.ZodDefault], "type">>>; }, z.core.$strip>, { modelSlot: import("#src/references/index.js").DefinitionEntityType; }>; export type ModelServiceConfig = def.InferOutput; export declare const createModelBaseSchema: import("#src/schema/creator/index.js").DefinitionSchemaCreatorWithSlots>; model: z.ZodObject<{ fields: z.ZodArray>>; relations: z.ZodPrefault>>>; primaryKeyFieldRefs: z.ZodArray>>; uniqueConstraints: z.ZodPrefault>>>; indexes: z.ZodPrefault>>>; }, z.core.$strip>; service: z.ZodPrefault; fields: z.ZodOptional>>>; transformerNames: z.ZodOptional>>>; globalRoles: z.ZodPrefault>>>; }, z.core.$strip>>; update: z.ZodPrefault; fields: z.ZodOptional>>>; transformerNames: z.ZodOptional>>>; globalRoles: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; }, z.core.$strip>>; delete: z.ZodPrefault; globalRoles: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; }, z.core.$strip>>; transformers: z.ZodDefault], "type">>>; }, z.core.$strip>>; graphql: z.ZodPrefault; fields: z.ZodPrefault>; globalRoles: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; }, z.core.$strip>>>; localRelations: z.ZodPrefault>; globalRoles: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; }, z.core.$strip>>>; foreignRelations: z.ZodPrefault>; globalRoles: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; }, z.core.$strip>>>; }, z.core.$strip>>; queries: z.ZodPrefault>>>; instanceRoles: z.ZodPrefault>>>; get: z.ZodPrefault; }, z.core.$strip>>; list: z.ZodPrefault; count: z.ZodPrefault; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; mutations: z.ZodPrefault; }, z.core.$strip>>; update: z.ZodPrefault; }, z.core.$strip>>; delete: z.ZodPrefault; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>>; authorizer: z.ZodPrefault>>>; }, z.core.$strip>>; }, z.core.$strip>, { modelSlot: import("#src/references/index.js").DefinitionEntityType; }>; export declare const createModelSchema: (context: import("#src/schema/creator/index.js").DefinitionSchemaParserContext) => z.ZodType<{ id: string; name: string; featureRef: string; model: { fields: ({ type: "string"; options: { default: string; }; id: string; name: string; isOptional: boolean; } | { type: "uuid"; options: { defaultGeneration: "none" | "uuidv4" | "uuidv7"; }; id: string; name: string; isOptional: boolean; } | { type: "int"; options: { default?: string | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "boolean"; options: { default?: "" | "true" | "false" | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "dateTime"; options: { defaultToNow?: boolean | undefined; updatedAt?: boolean | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "float"; options: { default: string; }; id: string; name: string; isOptional: boolean; } | { type: "decimal"; options: { default?: string | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "json"; options: { default?: string | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "date"; options: { default?: string | undefined; defaultToNow?: boolean | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "enum"; options: { enumRef: string; defaultEnumValueRef?: string | undefined; }; id: string; name: string; isOptional: boolean; })[]; relations: { id: string; foreignId: string; name: string; references: { localRef: string; foreignRef: string; }[]; modelRef: string; foreignRelationName: string; onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault"; onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault"; }[]; primaryKeyFieldRefs: string[]; uniqueConstraints: { id: string; fields: { fieldRef: string; }[]; }[]; indexes: { id: string; fields: { fieldRef: string; }[]; }[]; }; service: { create: { enabled: boolean; globalRoles: string[]; fields?: string[] | undefined; transformerNames?: string[] | undefined; }; update: { enabled: boolean; globalRoles: string[]; instanceRoles: string[]; fields?: string[] | undefined; transformerNames?: string[] | undefined; }; delete: { enabled: boolean; globalRoles: string[]; instanceRoles: string[]; }; transformers: { [x: string]: unknown; id: string; type: string; }[]; }; graphql: { objectType: { enabled: boolean; fields: { ref: string; globalRoles: string[]; instanceRoles: string[]; }[]; localRelations: { ref: string; globalRoles: string[]; instanceRoles: string[]; }[]; foreignRelations: { ref: string; globalRoles: string[]; instanceRoles: string[]; }[]; }; queries: { globalRoles: string[]; instanceRoles: string[]; get: { enabled: boolean; }; list: { enabled: boolean; count: { enabled: boolean; }; }; }; mutations: { create: { enabled: boolean; }; update: { enabled: boolean; }; delete: { enabled: boolean; }; }; }; authorizer: { roles: { id: string; name: string; expression: string; }[]; }; }, { id: string; name: string; featureRef: string; model: { fields: ({ type: "string"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "uuid"; id: string; name: string; options?: { defaultGeneration?: "none" | "uuidv4" | "uuidv7" | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "int"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "boolean"; id: string; name: string; options?: { default?: "" | "true" | "false" | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "dateTime"; id: string; name: string; options?: { defaultToNow?: boolean | undefined; updatedAt?: boolean | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "float"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "decimal"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "json"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "date"; id: string; name: string; options?: { default?: string | undefined; defaultToNow?: boolean | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "enum"; options: { enumRef: string; defaultEnumValueRef?: string | undefined; }; id: string; name: string; isOptional?: boolean | undefined; })[]; primaryKeyFieldRefs: string[]; relations?: { id: string; name: string; references: { localRef: string; foreignRef: string; }[]; modelRef: string; foreignRelationName: string; foreignId?: string | undefined; onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined; onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined; }[] | undefined; uniqueConstraints?: { id: string; fields: { fieldRef: string; }[]; }[] | undefined; indexes?: { id: string; fields: { fieldRef: string; }[]; }[] | undefined; }; service?: { create?: { enabled?: boolean | undefined; fields?: string[] | undefined; transformerNames?: string[] | undefined; globalRoles?: string[] | undefined; } | undefined; update?: { enabled?: boolean | undefined; fields?: string[] | undefined; transformerNames?: string[] | undefined; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; } | undefined; delete?: { enabled?: boolean | undefined; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; } | undefined; transformers?: { [x: string]: unknown; id: string; type: string; }[] | undefined; } | undefined; graphql?: { objectType?: { enabled?: boolean | undefined; fields?: { ref: string; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; }[] | undefined; localRelations?: { ref: string; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; }[] | undefined; foreignRelations?: { ref: string; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; }[] | undefined; } | undefined; queries?: { globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; get?: { enabled?: boolean | undefined; } | undefined; list?: { enabled?: boolean | undefined; count?: { enabled?: boolean | undefined; } | undefined; } | undefined; } | undefined; mutations?: { create?: { enabled?: boolean | undefined; } | undefined; update?: { enabled?: boolean | undefined; } | undefined; delete?: { enabled?: boolean | undefined; } | undefined; } | undefined; } | undefined; authorizer?: { roles?: { id: string; name: string; expression: string; }[] | undefined; } | undefined; }, z.core.$ZodTypeInternals<{ id: string; name: string; featureRef: string; model: { fields: ({ type: "string"; options: { default: string; }; id: string; name: string; isOptional: boolean; } | { type: "uuid"; options: { defaultGeneration: "none" | "uuidv4" | "uuidv7"; }; id: string; name: string; isOptional: boolean; } | { type: "int"; options: { default?: string | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "boolean"; options: { default?: "" | "true" | "false" | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "dateTime"; options: { defaultToNow?: boolean | undefined; updatedAt?: boolean | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "float"; options: { default: string; }; id: string; name: string; isOptional: boolean; } | { type: "decimal"; options: { default?: string | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "json"; options: { default?: string | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "date"; options: { default?: string | undefined; defaultToNow?: boolean | undefined; }; id: string; name: string; isOptional: boolean; } | { type: "enum"; options: { enumRef: string; defaultEnumValueRef?: string | undefined; }; id: string; name: string; isOptional: boolean; })[]; relations: { id: string; foreignId: string; name: string; references: { localRef: string; foreignRef: string; }[]; modelRef: string; foreignRelationName: string; onDelete: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault"; onUpdate: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault"; }[]; primaryKeyFieldRefs: string[]; uniqueConstraints: { id: string; fields: { fieldRef: string; }[]; }[]; indexes: { id: string; fields: { fieldRef: string; }[]; }[]; }; service: { create: { enabled: boolean; globalRoles: string[]; fields?: string[] | undefined; transformerNames?: string[] | undefined; }; update: { enabled: boolean; globalRoles: string[]; instanceRoles: string[]; fields?: string[] | undefined; transformerNames?: string[] | undefined; }; delete: { enabled: boolean; globalRoles: string[]; instanceRoles: string[]; }; transformers: { [x: string]: unknown; id: string; type: string; }[]; }; graphql: { objectType: { enabled: boolean; fields: { ref: string; globalRoles: string[]; instanceRoles: string[]; }[]; localRelations: { ref: string; globalRoles: string[]; instanceRoles: string[]; }[]; foreignRelations: { ref: string; globalRoles: string[]; instanceRoles: string[]; }[]; }; queries: { globalRoles: string[]; instanceRoles: string[]; get: { enabled: boolean; }; list: { enabled: boolean; count: { enabled: boolean; }; }; }; mutations: { create: { enabled: boolean; }; update: { enabled: boolean; }; delete: { enabled: boolean; }; }; }; authorizer: { roles: { id: string; name: string; expression: string; }[]; }; }, { id: string; name: string; featureRef: string; model: { fields: ({ type: "string"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "uuid"; id: string; name: string; options?: { defaultGeneration?: "none" | "uuidv4" | "uuidv7" | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "int"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "boolean"; id: string; name: string; options?: { default?: "" | "true" | "false" | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "dateTime"; id: string; name: string; options?: { defaultToNow?: boolean | undefined; updatedAt?: boolean | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "float"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "decimal"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "json"; id: string; name: string; options?: { default?: string | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "date"; id: string; name: string; options?: { default?: string | undefined; defaultToNow?: boolean | undefined; } | undefined; isOptional?: boolean | undefined; } | { type: "enum"; options: { enumRef: string; defaultEnumValueRef?: string | undefined; }; id: string; name: string; isOptional?: boolean | undefined; })[]; primaryKeyFieldRefs: string[]; relations?: { id: string; name: string; references: { localRef: string; foreignRef: string; }[]; modelRef: string; foreignRelationName: string; foreignId?: string | undefined; onDelete?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined; onUpdate?: "Cascade" | "Restrict" | "NoAction" | "SetNull" | "SetDefault" | undefined; }[] | undefined; uniqueConstraints?: { id: string; fields: { fieldRef: string; }[]; }[] | undefined; indexes?: { id: string; fields: { fieldRef: string; }[]; }[] | undefined; }; service?: { create?: { enabled?: boolean | undefined; fields?: string[] | undefined; transformerNames?: string[] | undefined; globalRoles?: string[] | undefined; } | undefined; update?: { enabled?: boolean | undefined; fields?: string[] | undefined; transformerNames?: string[] | undefined; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; } | undefined; delete?: { enabled?: boolean | undefined; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; } | undefined; transformers?: { [x: string]: unknown; id: string; type: string; }[] | undefined; } | undefined; graphql?: { objectType?: { enabled?: boolean | undefined; fields?: { ref: string; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; }[] | undefined; localRelations?: { ref: string; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; }[] | undefined; foreignRelations?: { ref: string; globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; }[] | undefined; } | undefined; queries?: { globalRoles?: string[] | undefined; instanceRoles?: string[] | undefined; get?: { enabled?: boolean | undefined; } | undefined; list?: { enabled?: boolean | undefined; count?: { enabled?: boolean | undefined; } | undefined; } | undefined; } | undefined; mutations?: { create?: { enabled?: boolean | undefined; } | undefined; update?: { enabled?: boolean | undefined; } | undefined; delete?: { enabled?: boolean | undefined; } | undefined; } | undefined; } | undefined; authorizer?: { roles?: { id: string; name: string; expression: string; }[] | undefined; } | undefined; }>>; export type ModelConfig = def.InferOutput; export type ModelConfigInput = def.InferInput; //# sourceMappingURL=models.d.ts.map