import { type ExpressionTypes } from "@cargo-ai/types"; import { z } from "zod"; import type { ApiType, DateToString } from "../types.js"; export declare namespace Expression { type ExpressionInstructTo = ApiType; type ExpressionKind = ApiType; type Expression = ApiType; type RecipePlaceholder = ApiType; type RecipeCategory = ApiType; type Recipe = ApiType; const matchIsExpression: (value: any) => boolean; type Override = ApiType; const matchIsOverride: (value: any) => boolean; const overrideJsonSchema: import("jsonschema").Schema; namespace Api { type CreateFavoriteRecipePayload = DateToString<{ recipeUuid: string; }>; type CreateFavoriteRecipeResult = object; type DeleteFavoriteRecipePayload = DateToString<{ recipeUuid: string; }>; type DeleteFavoriteRecipeResult = object; const zodDeleteFavoriteRecipeErrorReason: z.ZodEnum<{ alreadyArchived: "alreadyArchived"; recipeNotFound: "recipeNotFound"; recipeDoesNotBelongsToWorkspace: "recipeDoesNotBelongsToWorkspace"; }>; type EvaluateExpressionPayload = DateToString<{ expression: Expression; variables: Record; }>; type EvaluateExpressionResult = { data?: any; errorMessage?: string; }; type CreateRecipePayload = DateToString<{ name: string; description: string; category: RecipeCategory; placeholders: RecipePlaceholder[]; isPublic: boolean; kind: "jsExpression" | "templateExpression"; expression: string; instructTo: ExpressionInstructTo; }>; type CreateRecipeResult = { recipe: Recipe; }; type CreateNewRecipeVersionPayload = DateToString<{ uuid: string; name: string; description: string; category: RecipeCategory; placeholders: RecipePlaceholder[]; isPublic: boolean; expression: string; }>; type CreateNewRecipeVersionResult = { recipe: Recipe; }; const zodCreateNewRecipeVersionErrorReason: z.ZodEnum<{ recipeNotFound: "recipeNotFound"; }>; type GetRecipeResult = { recipe: Recipe; }; type ListRecipesPayload = DateToString<{ tab?: "all" | "user" | "workspace" | "favorites"; uiTypes?: ("js" | "ai")[]; categories?: ("other" | "classification" | "cleaning" | "marketing" | "sales" | "event" | "copywriting")[]; name?: string; limit?: number; offset?: number; }>; type ListRecipesResult = { recipes: Recipe[]; }; type UpdateRecipePayload = DateToString<{ uuid: string; name?: string; description?: string; category?: RecipeCategory; placeholders?: RecipePlaceholder[]; isPublic?: boolean; expression: string; }>; type UpdateRecipeResult = { recipe: Recipe; }; type GenerateExpressionPayload = DateToString<{ prompt: string; variables: Record; }>; type GenerateExpressionResult = { data?: any; errorMessage?: string; }; } const recipeKeys: { all: (workspaceUuid: string) => readonly ["recipes", string]; get: (workspaceUuid: string, id: string, version: number) => readonly ["recipes", string, string, number]; getLastVersion: (workspaceUuid: string, id: string) => readonly ["recipes", string, "last", string]; list: (workspaceUuid: string, payload: Api.ListRecipesPayload) => readonly ["recipes", string, { tab?: "user" | "all" | "workspace" | "favorites" | undefined; uiTypes?: ("ai" | "js")[] | undefined; categories?: ("marketing" | "sales" | "other" | "classification" | "cleaning" | "event" | "copywriting")[] | undefined; name?: string | undefined; limit?: number | undefined; offset?: number | undefined; }]; listFavorites: (workspaceUuid: string) => readonly ["list", string, "favorites"]; }; } //# sourceMappingURL=expression.d.ts.map