import { z } from 'zod'; /** * Error schema definitions for API error responses * Following JSON:API error object specification */ /** * An application-specific error code, expressed as a string value. */ declare const ErrorCodeSchema: z.ZodString; /** * Identifies the source of the error within the request payload, if relevant. */ declare const ErrorSourceSchema: z.ZodNullable; parameter: z.ZodOptional; header: z.ZodOptional; }, z.core.$strict>>; /** * An error object provides additional information about problems encountered while performing an operation. * Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document. */ declare const ErrorObjectSchema: z.ZodObject<{ id: z.ZodOptional>; links: z.ZodOptional>>; status: z.ZodOptional; code: z.ZodOptional; title: z.ZodOptional; detail: z.ZodOptional; source: z.ZodOptional; parameter: z.ZodOptional; header: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>; /** * A JSON:API error response document containing an array of error objects. */ declare const ErrorsResponseSchema: z.ZodObject<{ errors: z.ZodArray>; links: z.ZodOptional>>; status: z.ZodOptional; code: z.ZodOptional; title: z.ZodOptional; detail: z.ZodOptional; source: z.ZodOptional; parameter: z.ZodOptional; header: z.ZodOptional; }, z.core.$strict>>>; }, z.core.$strict>>; }, z.core.$strip>; type ErrorCode = z.infer; type ErrorSource = z.infer; type ErrorObject = z.infer; type ErrorsResponse = z.infer; export { type ErrorCode, ErrorCodeSchema, type ErrorObject, ErrorObjectSchema, type ErrorSource, ErrorSourceSchema, type ErrorsResponse, ErrorsResponseSchema };