import { BasicCTError } from "../../../src/core/BasicCTError"; import { Meta, StoryObj } from "@storybook/react"; /** * BasicCTError 用于接受 cloudtower 通用错误并解析 * * - 支持多种错误格式(Axios 错误、服务端响应错误等) * - 内置 i18n 支持 * - 支持自定义容器和详情渲染器 */ declare const meta: Meta; export default meta; type Story = StoryObj; /** * 基本用法 - 显示简单的错误消息 * * 传入一个简单的 Error 对象,组件会自动提取并显示错误消息。 */ export declare const Basic: Story; /** * 显示来自服务端的结构化错误,传入一个包含错误代码和消息的服务端响应错误对象,组件会自动提取并显示错误消息。 */ export declare const ServerError: Story; /** * 多条错误 - 显示包含多个错误详情的错误 */ export declare const MultipleErrors: Story; /** * Axios 请求错误 */ export declare const NetworkError: Story; /** * 自定义容器渲染器 */ export declare const CustomContainer: Story; /** * 自定义错误详情渲染器 */ export declare const CustomErrorDetail: Story; /** * 空错误处理 * 当传入 null 或 undefined 时,组件会自动处理并显示默认信息。 */ export declare const EmptyError: Story; /** * 可以通过 ConfigProvider 配置 i18n 命名空间和组件 options 配置 i18n 的命名空间。 优先使用组件 options 配置的命名空间。都不配置时,默认使用 CTError 命名空间。 */ export declare const Intl: Story;