import { ConfigurationError } from "@garden-io/grow-sdk/errors"; import type { s } from "@garden-io/grow-sdk/schema"; import type { JSONObject } from "@garden-io/grow-sdk/util/types"; /** * Improve on the default error messages generated by Zod (extend this function as needed). * * Note: The config path is added to the error message later in the flow (see the `validateSchema` function), * where we prepend it with the YAML path if available. */ export declare function renderZodError(error: s.ZodError): string; export interface ValidateOptions { context?: string; ErrorClass?: typeof ConfigurationError; stack?: string; } export declare const validateSchema: (value: unknown, schema: S, args_2?: ValidateOptions | undefined) => s.output; /** * Filters all values from `obj` that aren't JSON-like (i.e. plain objects/arrays whose leaves are primitives). * This is useful to prevent serialisation of huge object hierarchies. */ export declare function filterObjectForJSON(obj: Record): JSONObject;