UNPKG

chromancer

Version:

A powerful command-line interface for automating Chrome browser using Playwright. Perfect for web scraping, automation, testing, and browser workflows.

23 lines (22 loc) 635 B
import { CommandError } from './errors.js'; export interface ErrorTip { message: string; tip?: string; example?: string; docsLink?: string; } /** * Get actionable tips for common errors */ export declare function getErrorTip(error: CommandError | Error, command?: string): ErrorTip; /** * Format and display error with tips */ export declare function displayErrorWithTip(error: CommandError | Error, command?: string, docsBaseUrl?: string): void; /** * Enhance error messages in BaseCommand */ export declare function enhanceError(error: Error, context?: { command?: string; selector?: string; }): Error;