@puberty-labs/clits
Version:
CLiTS (Chrome Logging and Inspection Tool Suite) is a powerful Node.js library for AI-controlled Chrome browser automation, testing, and inspection. Features enhanced CSS selector support (:contains(), XPath), dry-run mode, element discovery tools, and co
25 lines (24 loc) • 788 B
TypeScript
export interface PlatformError {
code: string;
message: string;
platform: string;
severity: 'error' | 'warning' | 'info';
recoverable: boolean;
recommendation?: string;
}
export declare class PlatformErrorHandler {
private static readonly MAC_POLICY_ERRORS;
private static readonly KNOWN_ERRORS;
/**
* Check if the error is a known platform-specific issue
*/
static isPlatformError(error: Error | string | undefined | null): boolean;
/**
* Handle platform-specific errors
*/
static handleError(error: Error | string | undefined | null): PlatformError | null;
/**
* Check if an error should be suppressed based on platform-specific rules
*/
static shouldSuppressError(error: Error | string): boolean;
}