import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { DubError } from "./duberror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * A short code indicating the error code returned. */ export declare const ConflictCode: { readonly Conflict: "conflict"; }; /** * A short code indicating the error code returned. */ export type ConflictCode = ClosedEnum; export type ConflictError = { /** * A short code indicating the error code returned. */ code: ConflictCode; /** * A human readable explanation of what went wrong. */ message: string; /** * A link to our documentation with more details about this error code */ docUrl?: string | undefined; }; /** * This response is sent when a request conflicts with the current state of the server. */ export type ConflictData = { error: ConflictError; }; /** * This response is sent when a request conflicts with the current state of the server. */ export declare class Conflict extends DubError { error: ConflictError; /** The original data that was passed to this error instance. */ data$: ConflictData; constructor(err: ConflictData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const ConflictCode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ConflictError$inboundSchema: z.ZodType; export declare function conflictErrorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Conflict$inboundSchema: z.ZodType; //# sourceMappingURL=conflict.d.ts.map