/**
 * Check if error is a 401 Unauthorized response.
 * Indicates the user's session has expired or token is invalid.
 * Handles both direct status property and client-js error message format.
 */
export declare function is401UnauthorizedError(error: unknown): boolean;
/**
 * Check if error is a 403 Forbidden response.
 * Handles both direct status property and client-js error message format.
 */
export declare function is403ForbiddenError(error: unknown): boolean;
/**
 * Check if error is a 404 Not Found response.
 * Handles both direct status property and client-js error message format.
 */
export declare function is404NotFoundError(error: unknown): boolean;
/**
 * Check if an error came from a storage provider that does not implement `listBranches`.
 *
 * The server's `handleError` strips the original MastraError's `code`/`id` before serializing,
 * so we can't match on the ID `OBSERVABILITY_STORAGE_LIST_BRANCHES_NOT_IMPLEMENTED` directly —
 * we match on the message text from `core/.../observability/base.ts` instead.
 */
export declare function isBranchesNotSupportedError(error: unknown): boolean;
/**
 * Check if error has a status code that shouldn't be retried.
 * Used to prevent retrying client errors that won't resolve.
 */
export declare function isNonRetryableError(error: unknown): boolean;
/**
 * Default retry function for TanStack Query.
 * Does not retry 4xx client errors (400, 401, 403, 404).
 * Retries other errors up to 3 times.
 */
export declare function shouldRetryQuery(failureCount: number, error: unknown): boolean;
