import { ErrorCategory, ErrorSeverity, OneBotsError } from "onebots"; export interface ICQQErrorOptions { code: string; operation?: string; details?: unknown; cause?: unknown; category?: ErrorCategory; severity?: ErrorSeverity; } /** ICQQ 客户端、参数和平台资源共享的结构化错误。 */ export declare class ICQQError extends OneBotsError { readonly code: string; readonly operation?: string; readonly details?: unknown; constructor(message: string, options: ICQQErrorOptions); static wrap(error: unknown, code: string, operation?: string): ICQQError; } export declare function invalidICQQParam(message: string, details?: unknown): ICQQError; export declare function unexpectedICQQActionParameter(action: string, parameter: string): ICQQError; export declare function icqqResourceNotFound(resource: string, id: unknown): ICQQError; export declare function icqqOperationRejected(operation: string, details?: unknown): ICQQError; //# sourceMappingURL=errors.d.ts.map