export declare function isStaleResumeError(error: unknown): boolean; export declare function isAttachmentRejectedByProviderError(error: unknown): boolean; export declare const QUOTA_EXHAUSTED_USER_MESSAGE = "You've run out of AI credits. Upgrade your plan to continue using the n8n Assistant."; export declare const OPERATIONAL_ERROR_USER_MESSAGE = "I hit an operational error before I could finish that response. Please try again."; export declare function getUserFacingErrorCode(error: unknown): 'quota_exhausted' | undefined; export type TerminalErrorCode = NonNullable>; export declare function getUserFacingErrorMessage(error: unknown, fallback?: string, opts?: { attachmentRemoved?: boolean; }): string; export declare function isMaskedStreamFailure(error: unknown): error is Error;