/**
 * @module errors
 * Named error class hierarchy for @private.me/shared.
 *
 * Provides structured error types for Result pattern operations,
 * type validation, and common utility functions used across all packages.
 */
/** Base error class for all shared package operations. */
export declare class SharedError extends Error {
    readonly code: string;
    readonly subCode?: string;
    readonly docUrl?: string;
    constructor(code: string, message: string, docUrl?: string);
}
/** Error thrown for invalid type validation. */
export declare class SharedTypeError extends SharedError {
    constructor(code: string, message: string);
}
/** Error thrown for Result pattern operations. */
export declare class SharedResultError extends SharedError {
    constructor(code: string, message: string);
}
/** Error thrown during TLV type validation. */
export declare class SharedTlvError extends SharedError {
    constructor(code: string, message: string);
}
/** Human-readable messages for each error code. */
export declare const ERROR_MESSAGES: Record<string, string>;
/**
 * Detailed descriptions for each error code.
 * Maps error codes to comprehensive explanations including cause and resolution.
 */
export declare const ERROR_DETAILS: Record<string, {
    message: string;
    aws: string;
    grpc: string;
    http: number;
    severity: 'low' | 'medium' | 'high' | 'critical';
}>;
/**
 * Convert an unknown error into a SharedError.
 *
 * @param error - The unknown error to convert
 * @returns A SharedError instance
 */
export declare function toSharedError(error: unknown): SharedError;
/**
 * Type guard to check if an error is a SharedError.
 *
 * @param error - The value to check
 * @returns true if the value is a SharedError instance
 */
export declare function isSharedError(error: unknown): error is SharedError;
//# sourceMappingURL=errors.d.ts.map