export type ErrorCode = "CONNECTION_REFUSED" | "TAB_NOT_FOUND" | "MAX_TABS_EXCEEDED" | "ELEMENT_NOT_FOUND" | "NAVIGATION_FAILED" | "API_KEY_REQUIRED" | "PROFILE_NOT_FOUND" | "PROFILE_ERROR" | "TIMEOUT" | "VALIDATION_ERROR" | "INTERNAL_ERROR"; export declare class AppError extends Error { readonly code: ErrorCode; readonly status?: number; constructor(code: ErrorCode, message: string, status?: number); } export interface ToolResult { [key: string]: unknown; isError?: boolean; content: Array<{ type: "text"; text: string; } | { type: "image"; data: string; mimeType: string; }>; } export declare function okResult(data: unknown): ToolResult; export declare function imageResult(base64Png: string): ToolResult; export declare function binaryResult(base64: string, mimeType: string): ToolResult; export declare function normalizeError(error: unknown): AppError; export declare function toErrorResult(error: unknown): ToolResult; //# sourceMappingURL=errors.d.ts.map