import { z } from 'zod';
export declare const ErrorSeveritySchema: z.ZodEnum<["critical", "error", "warning", "info"]>;
export type ErrorSeverity = z.infer<typeof ErrorSeveritySchema>;
export declare const ErrorCategorySchema: z.ZodEnum<["validation", "authentication", "authorization", "notFound", "conflict", "rateLimit", "server", "network", "timeout", "unknown"]>;
export type ErrorCategory = z.infer<typeof ErrorCategorySchema>;
export interface BaseError {
    code: string;
    message: string;
    category: ErrorCategory;
    severity: ErrorSeverity;
    timestamp: string;
    details?: unknown;
    metadata?: Record<string, unknown>;
}
export interface ValidationError extends BaseError {
    category: 'validation';
    field?: string;
    path?: string[];
    constraints?: Record<string, string>;
}
export interface AuthenticationError extends BaseError {
    category: 'authentication';
    reason?: string;
    redirectUrl?: string;
}
export interface AuthorizationError extends BaseError {
    category: 'authorization';
    requiredPermissions?: string[];
    resource?: string;
    action?: string;
}
export interface NotFoundError extends BaseError {
    category: 'notFound';
    resource?: string;
    identifier?: string;
}
export interface ConflictError extends BaseError {
    category: 'conflict';
    resource?: string;
    identifier?: string;
    existingValue?: unknown;
    conflictingValue?: unknown;
}
export interface RateLimitError extends BaseError {
    category: 'rateLimit';
    limit?: number;
    reset?: string;
    retryAfter?: number;
}
export interface ServerError extends BaseError {
    category: 'server';
    stack?: string;
    component?: string;
}
export interface NetworkError extends BaseError {
    category: 'network';
    url?: string;
    method?: string;
    status?: number;
    statusText?: string;
}
export interface TimeoutError extends BaseError {
    category: 'timeout';
    timeout?: number;
    operation?: string;
}
export type ApplicationError = ValidationError | AuthenticationError | AuthorizationError | NotFoundError | ConflictError | RateLimitError | ServerError | NetworkError | TimeoutError | BaseError;
export interface ErrorContext {
    component?: string;
    operation?: string;
    userId?: string;
    sessionId?: string;
    requestId?: string;
    timestamp: string;
    metadata?: Record<string, unknown>;
}
export interface ErrorHandler {
    handle(error: unknown, context?: ErrorContext): ApplicationError;
    isHandled(error: unknown): boolean;
    getSeverity(error: ApplicationError): ErrorSeverity;
    getCategory(error: ApplicationError): ErrorCategory;
    format(error: ApplicationError): string;
    log(error: ApplicationError, context?: ErrorContext): void;
}
export declare const ErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    category: z.ZodEnum<["validation", "authentication", "authorization", "notFound", "conflict", "rateLimit", "server", "network", "timeout", "unknown"]>;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
    category: "unknown" | "timeout" | "validation" | "network" | "rateLimit" | "server" | "authentication" | "authorization" | "notFound" | "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
}, {
    category: "unknown" | "timeout" | "validation" | "network" | "rateLimit" | "server" | "authentication" | "authorization" | "notFound" | "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
}>;
export declare const ValidationErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"validation">;
    field: z.ZodOptional<z.ZodString>;
    path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    category: "validation";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    path?: string[] | undefined;
    constraints?: Record<string, string> | undefined;
    field?: string | undefined;
}, {
    category: "validation";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    path?: string[] | undefined;
    constraints?: Record<string, string> | undefined;
    field?: string | undefined;
}>;
export declare const AuthenticationErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"authentication">;
    reason: z.ZodOptional<z.ZodString>;
    redirectUrl: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "authentication";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    reason?: string | undefined;
    redirectUrl?: string | undefined;
}, {
    category: "authentication";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    reason?: string | undefined;
    redirectUrl?: string | undefined;
}>;
export declare const AuthorizationErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"authorization">;
    requiredPermissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    resource: z.ZodOptional<z.ZodString>;
    action: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "authorization";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    action?: string | undefined;
    requiredPermissions?: string[] | undefined;
}, {
    category: "authorization";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    action?: string | undefined;
    requiredPermissions?: string[] | undefined;
}>;
export declare const NotFoundErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"notFound">;
    resource: z.ZodOptional<z.ZodString>;
    identifier: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "notFound";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
}, {
    category: "notFound";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
}>;
export declare const ConflictErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"conflict">;
    resource: z.ZodOptional<z.ZodString>;
    identifier: z.ZodOptional<z.ZodString>;
    existingValue: z.ZodOptional<z.ZodUnknown>;
    conflictingValue: z.ZodOptional<z.ZodUnknown>;
}, "strip", z.ZodTypeAny, {
    category: "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
    existingValue?: unknown;
    conflictingValue?: unknown;
}, {
    category: "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
    existingValue?: unknown;
    conflictingValue?: unknown;
}>;
export declare const RateLimitErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"rateLimit">;
    limit: z.ZodOptional<z.ZodNumber>;
    reset: z.ZodOptional<z.ZodString>;
    retryAfter: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    category: "rateLimit";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    reset?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    limit?: number | undefined;
    retryAfter?: number | undefined;
}, {
    category: "rateLimit";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    reset?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    limit?: number | undefined;
    retryAfter?: number | undefined;
}>;
export declare const ServerErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"server">;
    stack: z.ZodOptional<z.ZodString>;
    component: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "server";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    component?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    stack?: string | undefined;
}, {
    category: "server";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    component?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    stack?: string | undefined;
}>;
export declare const NetworkErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"network">;
    url: z.ZodOptional<z.ZodString>;
    method: z.ZodOptional<z.ZodString>;
    status: z.ZodOptional<z.ZodNumber>;
    statusText: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "network";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    method?: string | undefined;
    status?: number | undefined;
    url?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    statusText?: string | undefined;
}, {
    category: "network";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    method?: string | undefined;
    status?: number | undefined;
    url?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    statusText?: string | undefined;
}>;
export declare const TimeoutErrorSchema: z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"timeout">;
    timeout: z.ZodOptional<z.ZodNumber>;
    operation: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "timeout";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    timeout?: number | undefined;
    operation?: string | undefined;
}, {
    category: "timeout";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    timeout?: number | undefined;
    operation?: string | undefined;
}>;
export declare const ApplicationErrorSchema: z.ZodDiscriminatedUnion<"category", [z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"validation">;
    field: z.ZodOptional<z.ZodString>;
    path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
    category: "validation";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    path?: string[] | undefined;
    constraints?: Record<string, string> | undefined;
    field?: string | undefined;
}, {
    category: "validation";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    path?: string[] | undefined;
    constraints?: Record<string, string> | undefined;
    field?: string | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"authentication">;
    reason: z.ZodOptional<z.ZodString>;
    redirectUrl: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "authentication";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    reason?: string | undefined;
    redirectUrl?: string | undefined;
}, {
    category: "authentication";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    reason?: string | undefined;
    redirectUrl?: string | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"authorization">;
    requiredPermissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
    resource: z.ZodOptional<z.ZodString>;
    action: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "authorization";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    action?: string | undefined;
    requiredPermissions?: string[] | undefined;
}, {
    category: "authorization";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    action?: string | undefined;
    requiredPermissions?: string[] | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"notFound">;
    resource: z.ZodOptional<z.ZodString>;
    identifier: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "notFound";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
}, {
    category: "notFound";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"conflict">;
    resource: z.ZodOptional<z.ZodString>;
    identifier: z.ZodOptional<z.ZodString>;
    existingValue: z.ZodOptional<z.ZodUnknown>;
    conflictingValue: z.ZodOptional<z.ZodUnknown>;
}, "strip", z.ZodTypeAny, {
    category: "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
    existingValue?: unknown;
    conflictingValue?: unknown;
}, {
    category: "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    resource?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    identifier?: string | undefined;
    existingValue?: unknown;
    conflictingValue?: unknown;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"rateLimit">;
    limit: z.ZodOptional<z.ZodNumber>;
    reset: z.ZodOptional<z.ZodString>;
    retryAfter: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
    category: "rateLimit";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    reset?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    limit?: number | undefined;
    retryAfter?: number | undefined;
}, {
    category: "rateLimit";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    reset?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    limit?: number | undefined;
    retryAfter?: number | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"server">;
    stack: z.ZodOptional<z.ZodString>;
    component: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "server";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    component?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    stack?: string | undefined;
}, {
    category: "server";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    component?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    stack?: string | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"network">;
    url: z.ZodOptional<z.ZodString>;
    method: z.ZodOptional<z.ZodString>;
    status: z.ZodOptional<z.ZodNumber>;
    statusText: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "network";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    method?: string | undefined;
    status?: number | undefined;
    url?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    statusText?: string | undefined;
}, {
    category: "network";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    method?: string | undefined;
    status?: number | undefined;
    url?: string | undefined;
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    statusText?: string | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
} & {
    category: z.ZodLiteral<"timeout">;
    timeout: z.ZodOptional<z.ZodNumber>;
    operation: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
    category: "timeout";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    timeout?: number | undefined;
    operation?: string | undefined;
}, {
    category: "timeout";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
    timeout?: number | undefined;
    operation?: string | undefined;
}>, z.ZodObject<{
    code: z.ZodString;
    message: z.ZodString;
    category: z.ZodEnum<["validation", "authentication", "authorization", "notFound", "conflict", "rateLimit", "server", "network", "timeout", "unknown"]>;
    severity: z.ZodEnum<["critical", "error", "warning", "info"]>;
    timestamp: z.ZodString;
    details: z.ZodOptional<z.ZodUnknown>;
    metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, "strip", z.ZodTypeAny, {
    category: "unknown" | "timeout" | "validation" | "network" | "rateLimit" | "server" | "authentication" | "authorization" | "notFound" | "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
}, {
    category: "unknown" | "timeout" | "validation" | "network" | "rateLimit" | "server" | "authentication" | "authorization" | "notFound" | "conflict";
    code: string;
    timestamp: string;
    message: string;
    severity: "warning" | "error" | "info" | "critical";
    details?: unknown;
    metadata?: Record<string, unknown> | undefined;
}>]>;
//# sourceMappingURL=errors.d.ts.map