import { z } from "zod"; export declare const createResourceFormFieldSchema: z.ZodObject<{ source: z.ZodObject<{ type: z.ZodNullable, z.ZodLiteral<"existing">]>>; existing: z.ZodObject<{ id: z.ZodNullable; definition: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; definition: string | null; }, { id: string | null; definition: string | null; }>; new: z.ZodObject<{ id: z.ZodNullable; definition: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; definition: string | null; }, { id: string | null; definition: string | null; }>; }, "strip", z.ZodTypeAny, { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }, { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }>; destination: z.ZodObject<{ type: z.ZodNullable, z.ZodLiteral<"existing">]>>; existing: z.ZodObject<{ id: z.ZodNullable; definition: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; definition: string | null; }, { id: string | null; definition: string | null; }>; new: z.ZodObject<{ id: z.ZodNullable; definition: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; definition: string | null; }, { id: string | null; definition: string | null; }>; }, "strip", z.ZodTypeAny, { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }, { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }>; model: z.ZodObject<{ type: z.ZodNullable, z.ZodLiteral<"existing">]>>; existing: z.ZodObject<{ id: z.ZodNullable; definition: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; definition: string | null; }, { id: string | null; definition: string | null; }>; new: z.ZodObject<{ id: z.ZodNullable; definition: z.ZodNullable; description: z.ZodNullable; local: z.ZodObject<{ file: z.ZodNullable>; }, "strip", z.ZodTypeAny, { file: File | null; }, { file: File | null; }>; github: z.ZodObject<{ repoUrl: z.ZodNullable; tag: z.ZodNullable; }, "strip", z.ZodTypeAny, { tag: string | null; repoUrl: string | null; }, { tag: string | null; repoUrl: string | null; }>; artivc: z.ZodObject<{ gcsBucketPath: z.ZodNullable; credentials: z.ZodNullable; tag: z.ZodNullable; }, "strip", z.ZodTypeAny, { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }, { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }>; huggingFace: z.ZodObject<{ repoUrl: z.ZodNullable; }, "strip", z.ZodTypeAny, { repoUrl: string | null; }, { repoUrl: string | null; }>; modelIsSet: z.ZodBoolean; }, "strip", z.ZodTypeAny, { github: { tag: string | null; repoUrl: string | null; }; id: string | null; description: string | null; definition: string | null; local: { file: File | null; }; artivc: { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }; huggingFace: { repoUrl: string | null; }; modelIsSet: boolean; }, { github: { tag: string | null; repoUrl: string | null; }; id: string | null; description: string | null; definition: string | null; local: { file: File | null; }; artivc: { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }; huggingFace: { repoUrl: string | null; }; modelIsSet: boolean; }>; }, "strip", z.ZodTypeAny, { type: "new" | "existing" | null; new: { github: { tag: string | null; repoUrl: string | null; }; id: string | null; description: string | null; definition: string | null; local: { file: File | null; }; artivc: { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }; huggingFace: { repoUrl: string | null; }; modelIsSet: boolean; }; existing: { id: string | null; definition: string | null; }; }, { type: "new" | "existing" | null; new: { github: { tag: string | null; repoUrl: string | null; }; id: string | null; description: string | null; definition: string | null; local: { file: File | null; }; artivc: { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }; huggingFace: { repoUrl: string | null; }; modelIsSet: boolean; }; existing: { id: string | null; definition: string | null; }; }>; pipeline: z.ZodObject<{ id: z.ZodNullable; description: z.ZodNullable; }, "strip", z.ZodTypeAny, { id: string | null; description: string | null; }, { id: string | null; description: string | null; }>; }, "strip", z.ZodTypeAny, { source: { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }; model: { type: "new" | "existing" | null; new: { github: { tag: string | null; repoUrl: string | null; }; id: string | null; description: string | null; definition: string | null; local: { file: File | null; }; artivc: { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }; huggingFace: { repoUrl: string | null; }; modelIsSet: boolean; }; existing: { id: string | null; definition: string | null; }; }; pipeline: { id: string | null; description: string | null; }; destination: { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }; }, { source: { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }; model: { type: "new" | "existing" | null; new: { github: { tag: string | null; repoUrl: string | null; }; id: string | null; description: string | null; definition: string | null; local: { file: File | null; }; artivc: { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }; huggingFace: { repoUrl: string | null; }; modelIsSet: boolean; }; existing: { id: string | null; definition: string | null; }; }; pipeline: { id: string | null; description: string | null; }; destination: { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }; }>; export declare const validateCreateReourceFormSchema: (value: any) => { source: { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }; model: { type: "new" | "existing" | null; new: { github: { tag: string | null; repoUrl: string | null; }; id: string | null; description: string | null; definition: string | null; local: { file: File | null; }; artivc: { credentials: string | null; tag: string | null; gcsBucketPath: string | null; }; huggingFace: { repoUrl: string | null; }; modelIsSet: boolean; }; existing: { id: string | null; definition: string | null; }; }; pipeline: { id: string | null; description: string | null; }; destination: { type: "new" | "existing" | null; new: { id: string | null; definition: string | null; }; existing: { id: string | null; definition: string | null; }; }; }; export type CreateResourceFormFields = z.infer; type ConvertToErrors = T extends Array ? string | null : T extends object ? { [K in keyof Omit]: K extends "file" ? string | null : ConvertToErrors; } : string | null; export type CreateResourceFormState = { formIsDirty: boolean; createNewResourceIsComplete: boolean; pipelineFormStep: number; fields: CreateResourceFormFields; errors: ConvertToErrors; }; export type CreateResourceFormAction = { setFormIsDirty: (isDirty: boolean) => void; setCreateNewResourceIsComplete: (isComplete: boolean) => void; setPipelineFormStep: (step: number) => void; init: () => void; setFieldError: (errorPath: string, value: any) => void; setFieldValue: (fieldPath: string, value: any) => void; setFieldsValue: (fields: CreateResourceFormFields) => void; setErrorsValue: (errors: CreateResourceFormState["errors"]) => void; increasePipelineFormStep: () => void; decreasePipelineFormStep: () => void; }; export type CreateResourceFormStore = CreateResourceFormState & CreateResourceFormAction; export declare const useCreateResourceFormStore: import("zustand").UseBoundStore, "setState" | "devtools"> & { setState(partial: CreateResourceFormStore | Partial | ((state: CreateResourceFormStore) => CreateResourceFormStore | Partial), replace?: false | undefined, action?: (string | { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; type: string; }) | undefined): void; setState(state: CreateResourceFormStore | ((state: CreateResourceFormStore) => CreateResourceFormStore), replace: true, action?: (string | { [x: string]: unknown; [x: number]: unknown; [x: symbol]: unknown; type: string; }) | undefined): void; devtools: { cleanup: () => void; }; }>; export {}; //# sourceMappingURL=useCreateResourceFormStore.d.ts.map