/**
 * Platform Service Error System
 *
 * This module provides a comprehensive error handling system for the Platform Service,
 * with structured error types, error codes, and consistent patterns for logging and recovery.
 */
export * from './error.codes.js';
export * from './base.errors.js';
export * from './reputation.errors.js';
export * from './error-handler.js';
import { getErrorClassForCategory } from './base.errors.js';
export { getErrorClassForCategory };
import { PlatformError } from './base.errors.js';
/**
 * Create a typed error from a standard Error
 * Useful for converting errors from external libraries or APIs
 *
 * @param error Standard error to convert
 * @param code Error code to assign
 * @param contextData Additional context data
 * @returns Typed PlatformError
 */
export declare function fromError(error: Error, code: string, contextData?: Record<string, any>): PlatformError;
/**
 * Determine if an error is retryable
 *
 * @param error Error to check
 * @returns Boolean indicating if the error should be retried
 */
export declare function isRetryable(error: any): boolean;
/**
 * Create a wrapped version of a function that catches errors
 * and converts them to typed PlatformErrors
 *
 * @param fn Function to wrap
 * @param errorCode Default error code to use
 * @param contextData Additional context data
 * @returns Wrapped function
 */
export declare function withErrorHandling<T extends (...args: any[]) => Promise<any>>(fn: T, errorCode: string, contextData?: Record<string, any>): T;
/**
 * Retry a function with exponential backoff
 *
 * @param fn Function to retry
 * @param options Retry options
 * @returns Function result or throws after max retries
 */
export declare function retry<T>(fn: () => Promise<T>, options?: {
    maxRetries?: number;
    initialDelay?: number;
    maxDelay?: number;
    backoffFactor?: number;
    retryableErrors?: Array<string | RegExp>;
}): Promise<T>;
