import { BaseError } from './index'; /** * Format an error object into a human-readable string with detailed context * * @param error - The error to format * @param includeStack - Whether to include the stack trace * @returns A formatted error string */ export declare function formatError(error: Error, includeStack?: boolean): string; /** * Log an error to the console with detailed information * * @param error - The error to log * @param prefix - An optional prefix to add to the log */ export declare function logError(error: Error, prefix?: string): void; /** * Create a custom error instance based on the error type and context * * @param type - The type of error to create * @param message - The error message * @param context - Additional context for the error * @param cause - The original error that caused this one * @returns A custom error instance */ export declare function createError(type: 'document' | 'readability' | 'turndown' | 'markdown', message: string, context?: Record, cause?: Error): BaseError; /** * Assert that a condition is true, or throw an error * * @param condition - The condition to check * @param errorType - The type of error to throw * @param message - The error message * @param context - Additional context for the error */ export declare function assert(condition: boolean, errorType: 'document' | 'readability' | 'turndown' | 'markdown', message: string, context?: Record): void;