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 InternalServerErrorCode: { readonly InternalServerError: "internal_server_error"; }; /** * A short code indicating the error code returned. */ export type InternalServerErrorCode = ClosedEnum; export type InternalServerErrorError = { /** * A short code indicating the error code returned. */ code: InternalServerErrorCode; /** * 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; }; /** * The server has encountered a situation it does not know how to handle. */ export type InternalServerErrorData = { error: InternalServerErrorError; }; /** * The server has encountered a situation it does not know how to handle. */ export declare class InternalServerError extends DubError { error: InternalServerErrorError; /** The original data that was passed to this error instance. */ data$: InternalServerErrorData; constructor(err: InternalServerErrorData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const InternalServerErrorCode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const InternalServerErrorError$inboundSchema: z.ZodType; export declare function internalServerErrorErrorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const InternalServerError$inboundSchema: z.ZodType; //# sourceMappingURL=internalservererror.d.ts.map