import { ClassValue } from 'clsx'; import * as React$1 from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu'; import { Select as Select$1 } from '@base-ui/react/select'; import { Slider as Slider$1 } from '@base-ui/react/slider'; import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group'; import { Command as Command$1 } from 'cmdk'; import { ToasterProps } from 'sonner'; import * as class_variance_authority_types from 'class-variance-authority/types'; import { Button as Button$1 } from '@base-ui/react/button'; import { VariantProps } from 'class-variance-authority'; import { Accordion as Accordion$1 } from '@base-ui/react/accordion'; import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog'; import { Avatar as Avatar$1 } from '@base-ui/react/avatar'; import { useRender } from '@base-ui/react/use-render'; import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox'; import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip'; import { Dialog as Dialog$1 } from '@base-ui/react/dialog'; import { Drawer as Drawer$1 } from '@base-ui/react/drawer'; import { Menu } from '@base-ui/react/menu'; import { Popover as Popover$1 } from '@base-ui/react/popover'; import * as _base_ui_react from '@base-ui/react'; import { Progress as Progress$1 } from '@base-ui/react/progress'; import { Radio } from '@base-ui/react/radio'; import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group'; import * as Primitive from 'react-resizable-panels'; import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area'; import { Separator as Separator$1 } from '@base-ui/react/separator'; import { Switch as Switch$1 } from '@base-ui/react/switch'; import { Tabs as Tabs$1 } from '@base-ui/react/tabs'; import { Toggle as Toggle$1 } from '@base-ui/react/toggle'; /** * Downcity UI SDK 通用工具。 * * 关键说明(中文) * - `cn` 统一合并条件类名与 Tailwind 冲突类。 * - 所有基础组件都应复用这个方法,避免类名覆盖顺序不一致。 */ declare function cn(...inputs: ClassValue[]): string; /** Chat runtime 的可移植状态和宿主回调协议。 */ /** 已排队但尚未交给 Agent 执行的输入。 */ interface DowncityChatQueuedInput { /** 队列项稳定标识。 */ id: string; /** 队列项正文。 */ text: string; } /** Runtime 初始化和宿主能力。 */ interface DowncityChatRuntimeOptions { /** 初始 Session JSONL。 */ initial_jsonl?: string; /** 初始规范化消息。 */ initial_messages?: DowncityChatMessage[]; /** 默认模型列表。 */ model_options?: DowncityChatModelOption[]; /** 当前模型。 */ model_id?: string; /** 当前 approval 模式。 */ approval_mode?: DowncityChatApprovalMode; /** 将用户输入提交到宿主 Session。 */ submit_message?: (input: DowncityChatSubmitInput, mode: "send" | "queue") => void | Promise; /** 请求宿主停止当前 turn。 */ stop_generation?: () => void | Promise; /** 将 approval/question 响应写回 Session。 */ respond_interaction?: (interaction_id: string, response: unknown) => void | Promise; } /** Runtime 的只读快照。 */ interface DowncityChatRuntimeSnapshot { /** 当前消息。 */ messages: DowncityChatMessage[]; /** 当前运行状态。 */ status: DowncityChatStatus; /** 模型列表。 */ model_options: DowncityChatModelOption[]; /** 当前模型。 */ model_id: string; /** approval 模式。 */ approval_mode: DowncityChatApprovalMode; /** 当前等待执行的输入队列。 */ queued_inputs: DowncityChatQueuedInput[]; } /** Runtime 状态订阅回调。 */ type DowncityChatRuntimeListener = (snapshot: DowncityChatRuntimeSnapshot) => void; /** 可被 React、Vue 或原生宿主订阅的 Chat 状态容器。 */ declare class DowncityChatRuntime { private snapshot; private readonly listeners; private readonly options; private queued_inputs; constructor(options?: DowncityChatRuntimeOptions); /** 返回当前快照。 */ get_snapshot(): DowncityChatRuntimeSnapshot; /** 订阅状态变化。 */ subscribe(listener: DowncityChatRuntimeListener): () => void; /** 追加或替换 JSONL 中的 canonical message。 */ append_jsonl(jsonl: string): void; /** 追加已经解析的 Session message。 */ append_message(record: Record): void; /** 提交输入;streaming 时进入队列。 */ submit(input: DowncityChatSubmitInput, mode?: "send" | "queue"): Promise; /** 停止当前生成并恢复可输入状态。 */ stop(): Promise; /** 响应一个 Session interaction。 */ respond_interaction(interaction_id: string, response: unknown): Promise; /** 切换运行状态,供 Session 事件桥接。 */ set_status(status: DowncityChatStatus): void; /** 修改模型。 */ set_model(model_id: string): void; /** 修改 approval 模式。 */ set_approval_mode(approval_mode: DowncityChatApprovalMode): void; /** 取出下一条队列输入。 */ dequeue(): DowncityChatSubmitInput | undefined; /** 删除一条尚未执行的队列输入。 */ remove_queued_input(input_id: string): void; /** 调整一条队列输入的相对顺序。 */ move_queued_input(input_id: string, direction: "up" | "down"): void; /** 将内部队列投影到只读快照。 */ private sync_queued_inputs; private update; } /** 创建一个独立的 Chat runtime。 */ declare function create_chat_runtime(options?: DowncityChatRuntimeOptions): DowncityChatRuntime; /** Chat 面板运行状态。 */ type DowncityChatStatus = "ready" | "submitted" | "streaming" | "building-context" | "error"; /** 消息角色。 */ type DowncityChatMessageRole = "user" | "assistant" | "system" | "error"; /** 消息 part 类型。 */ type DowncityChatMessagePartType = "text" | "reasoning" | "tool" | "interaction" | "file" | "source" | "operation" | "changed-files" | "data" | "step-start"; /** Chat 消息中的结构化 part。 */ interface DowncityChatMessagePart { /** part 稳定标识。 */ id: string; /** part 类型。 */ type: DowncityChatMessagePartType; /** 文本内容。 */ text?: string; /** part 是否仍在流式生成。 */ state?: string; /** 工具调用标识。 */ tool_call_id?: string; /** 工具注册名称。 */ tool_name?: string; /** 工具显示名称。 */ tool_display_name?: string; /** 工具状态。 */ tool_state?: string; /** 工具输入。 */ input?: unknown; /** 工具尚未完成输入时的原始 JSON 文本。 */ input_text?: string; /** 工具输出。 */ output?: unknown; /** 工具错误。 */ error?: string; /** 交互标识。 */ interaction_id?: string; /** 交互关联的工具调用标识。 */ interaction_tool_call_id?: string; /** 交互标题。 */ title?: React$1.ReactNode; /** 交互说明。 */ description?: React$1.ReactNode; /** 交互类型。 */ interaction_type?: "approval" | "question" | string; /** 交互状态。 */ interaction_status?: string; /** 问题集合。 */ questions?: DowncityChatQuestion[]; /** 文件 URL。 */ url?: string; /** 文件 MIME 类型。 */ media_type?: string; /** 文件名。 */ filename?: string; /** source 标题。 */ source_title?: string; /** source 地址。 */ source_url?: string; /** operation 状态载荷。 */ operation?: DowncityChatOperation; /** changed-files 文件集合。 */ files?: DowncityChatChangedFile[]; /** changed-files 汇总。 */ summary?: DowncityChatChangedFileSummary; /** data 类型。 */ data_type?: string; /** data 内容。 */ data?: unknown; } /** Question 选项。 */ interface DowncityChatQuestionOption { value: string; /** 选项显示文案。 */ label: string; } /** 一个交互问题。 */ interface DowncityChatQuestion { /** 问题标识。 */ id: string; /** 提示文案。 */ prompt: string; /** 响应类型。 */ response_type: "text" | "single_select" | "multi_select"; /** 可选项。 */ options?: DowncityChatQuestionOption[]; } /** 工具操作展示载荷。 */ interface DowncityChatOperation { status: string; /** 操作名称。 */ name: string; /** 操作标题。 */ label?: string; /** 操作进度。 */ progress?: number; /** 失败原因。 */ error?: string; } /** 变更文件统计。 */ interface DowncityChatChangedFile { path: string; /** 新增行数。 */ additions: number; /** 删除行数。 */ deletions: number; /** diff 文本。 */ diff?: string; } /** 变更文件汇总。 */ interface DowncityChatChangedFileSummary { file_count: number; /** 新增行数。 */ additions: number; /** 删除行数。 */ deletions: number; } /** 消息附件。 */ interface DowncityChatAttachment { id: string; /** 附件名称。 */ name: string; /** 附件类型。 */ type?: string; /** 预览地址。 */ url?: string; /** 文件大小。 */ size?: number; } /** Chat 消息。 */ interface DowncityChatMessage { /** 消息标识。 */ id: string; /** 消息角色。 */ role: DowncityChatMessageRole; /** 纯文本回退内容。 */ content?: string; /** 按 canonical 顺序排列的 parts。 */ parts?: DowncityChatMessagePart[]; /** 创建时间。 */ created_at?: Date | number | string; /** 顶层附件。 */ attachments?: DowncityChatAttachment[]; /** 是否流式。 */ is_streaming?: boolean; /** 展示元数据。 */ metadata?: { official_message_id?: string; presentation_status?: string; error?: string; sequence?: number; revision?: number; turn_id?: string; visibility?: string; session_type?: string; }; } /** 会话摘要。 */ interface DowncityChatThread { id: string; /** 会话标题。 */ title: string; /** 更新时间。 */ updated_at?: Date | number | string; /** 是否未读。 */ unread?: boolean; /** 是否归档。 */ archived?: boolean; } /** 输入区模型选项。 */ interface DowncityChatModelOption { id: string; /** 模型显示名称。 */ label: string; } /** 输入区审批模式。 */ type DowncityChatApprovalMode = "ask" | "always-allow"; /** 输入附件。 */ interface DowncityChatSubmitAttachment extends DowncityChatAttachment { text?: string; /** 附件 base64。 */ base64?: string; } /** 输入提交值。 */ interface DowncityChatSubmitInput { text: string; /** 输入附件。 */ attachments: DowncityChatSubmitAttachment[]; } /** 自定义消息渲染参数。 */ interface DowncityChatMessageRenderProps { message: DowncityChatMessage; } /** Chat Panel 属性。 */ interface DowncityChatPanelProps extends Omit, "children" | "title"> { /** 可选 Chat runtime;提供后由 runtime 持有消息、状态和提交逻辑。 */ runtime?: DowncityChatRuntime; /** 当前会话。 */ thread?: DowncityChatThread | null; /** 历史会话。 */ threads?: DowncityChatThread[]; /** 消息列表。 */ messages?: DowncityChatMessage[]; /** 运行状态。 */ status?: DowncityChatStatus; /** 初始历史打开状态。 */ history_open?: boolean; /** 历史加载状态。 */ history_loading?: boolean; /** 是否有更多历史。 */ has_more_threads?: boolean; /** 是否登录。 */ is_logged_in?: boolean; /** 标题。 */ title?: React$1.ReactNode; /** 空状态标题。 */ empty_title?: React$1.ReactNode; /** 空状态描述。 */ empty_description?: React$1.ReactNode; /** 输入占位符。 */ input_placeholder?: string; /** 可选模型列表。 */ model_options?: DowncityChatModelOption[]; /** 当前模型标识。 */ model_id?: string; /** 模型切换回调。 */ on_model_change?: (model_id: string) => void | Promise; /** 当前审批模式。 */ approval_mode?: DowncityChatApprovalMode; /** 审批模式切换回调。 */ on_approval_mode_change?: (mode: DowncityChatApprovalMode) => void | Promise; /** 提交消息。 */ on_submit?: (input: DowncityChatSubmitInput, mode?: "send" | "queue") => void | Promise; /** 停止生成。 */ on_stop?: () => void | Promise; /** 响应当前 Session 的 approval/question Interaction。 */ on_respond_interaction?: (interaction_id: string, response: unknown) => void | Promise; /** 打开附件选择。 */ on_attach?: () => void; /** 新建会话。 */ on_create_thread?: () => void | Promise; /** 选择会话。 */ on_select_thread?: (thread_id: string) => void | Promise; /** 归档会话。 */ on_archive_thread?: (thread_id: string) => void | Promise; /** 加载更多会话。 */ on_load_more_threads?: () => void | Promise; /** 自定义消息渲染。 */ render_message?: (props: DowncityChatMessageRenderProps) => React$1.ReactNode; /** 顶部自定义操作。 */ render_header_actions?: () => React$1.ReactNode; /** 底部自定义内容。 */ render_footer?: () => React$1.ReactNode; } /** 与 Duobox 消息布局一致的受控消息组件。 */ declare function ChatMessage({ message, render_message, on_respond_interaction }: Pick & { message: DowncityChatMessage; }): react_jsx_runtime.JSX.Element | null; /** 直接组合消息列表;宿主可在自己的 Chat 页面中使用,不需要 ChatPanel 封装。 */ declare function ChatMessageList({ messages, render_message, on_respond_interaction }: { messages: DowncityChatMessage[]; render_message?: DowncityChatPanelProps["render_message"]; on_respond_interaction?: DowncityChatPanelProps["on_respond_interaction"]; }): react_jsx_runtime.JSX.Element; type ChatComposerProps = Pick & { /** 当前由 Chat runtime 持有的等待队列。 */ queued_inputs?: DowncityChatQueuedInput[]; /** 删除等待队列中的一项。 */ on_remove_queued?: (input_id: string) => void; /** 调整等待队列中一项的顺序。 */ on_move_queued?: (input_id: string, direction: "up" | "down") => void; }; /** 与 Duobox 输入壳结构一致的受控 Chat 输入组件。 */ declare function ChatComposer({ status, input_placeholder, on_submit, on_stop, on_attach, model_options, model_id, on_model_change, approval_mode, on_approval_mode_change, queued_inputs, on_remove_queued, on_move_queued }: ChatComposerProps): react_jsx_runtime.JSX.Element; /** Duobox 命名兼容:输入编辑器直接作为内部组件使用。 */ declare const ChatInputEditor: typeof ChatComposer; /** Duobox 风格历史列表。 */ declare function ChatHistory({ threads, current_thread_id, loading, has_more, on_select, on_archive, on_load_more }: { threads: DowncityChatThread[]; current_thread_id?: string; loading?: boolean; has_more?: boolean; on_select?: DowncityChatPanelProps["on_select_thread"]; on_archive?: DowncityChatPanelProps["on_archive_thread"]; on_load_more?: DowncityChatPanelProps["on_load_more_threads"]; }): react_jsx_runtime.JSX.Element; /** 组合顶部栏、对话滚动区、消息和输入区的通用 Chat Panel。 */ declare function ChatPanel({ className, runtime, thread, threads, messages: provided_messages, status: provided_status, history_open, history_loading, has_more_threads, title, empty_title, empty_description, input_placeholder, model_options: provided_model_options, model_id: provided_model_id, on_model_change, approval_mode: provided_approval_mode, on_approval_mode_change, on_submit, on_stop, on_respond_interaction, on_attach, on_create_thread, on_select_thread, on_archive_thread, on_load_more_threads, render_message, render_header_actions, render_footer, ...props }: DowncityChatPanelProps): react_jsx_runtime.JSX.Element; /** Session SDK canonical JSONL 到 Chat 展示协议的纯函数 adapter。 */ /** * 将 Session SDK 的 user/assistant/action/error 记录投影为 UI 消息。 * 该函数不读取运行时,也不修改输入,适合在宿主的 store selector 中使用。 */ declare function session_message_to_chat_message(record: Record): DowncityChatMessage; /** 将单个 canonical part 转为 UI part。 */ declare function session_part_to_chat_part(raw_part: unknown, index?: number): DowncityChatMessagePart | null; /** 将 Session SDK 的 active.jsonl 规范化为最终展示消息。 * 同一 message_id 可能有多条 revision;这里只保留最新 revision,避免把运行中快照和最终快照重复渲染。 */ declare function session_jsonl_to_chat_messages(jsonl: string): DowncityChatMessage[]; /** * Downcity UI SDK 公共类型定义。 * * 关键说明(中文) * - 基础组件的公共联合类型统一集中到 `types/` 目录。 * - 这里只放跨组件共享或对外公开的类型,不放实现细节。 */ /** ToggleGroup 支持的视觉尺寸。 */ type DowncityToggleGroupSize = "default" | "sm" | "lg"; /** ToggleGroup 保留的视觉变体;两种变体共享同一套主题表面。 */ type DowncityToggleGroupVariant = "default" | "outline"; /** ToggleGroup 属性;组件固定为互斥单选,以支持唯一的移动激活层。 */ interface DowncityToggleGroupProps extends Omit, "multiple"> { /** 根元素引用,用于宿主应用读取布局或控制焦点。 */ ref?: React$1.Ref; /** 组内项目之间的像素间距,默认无间距。 */ spacing?: number; /** 组内项目的统一视觉尺寸。 */ size?: DowncityToggleGroupSize; /** 组内项目的统一视觉变体。 */ variant?: DowncityToggleGroupVariant; } /** Annotation 支持的语义强度。 */ type DowncityAnnotationTone = "note" | "info" | "warning" | "danger"; /** Annotation 注释块属性。 */ interface DowncityAnnotationProps extends Omit, "title"> { /** 注释块顶部展示的可选标题。 */ title?: React$1.ReactNode; /** 注释块的语义强度,只影响由主题变量派生的边界与表面。 */ tone?: DowncityAnnotationTone; } /** Typography 标题组件属性。 */ type DowncityTypographyHeadingProps = React$1.ComponentPropsWithoutRef<"h1">; /** Typography 段落组件属性。 */ type DowncityTypographyParagraphProps = React$1.ComponentPropsWithoutRef<"p">; /** Typography 行内文本组件属性。 */ type DowncityTypographySpanProps = React$1.ComponentPropsWithoutRef<"span">; /** Typography 引用组件属性。 */ type DowncityTypographyBlockquoteProps = React$1.ComponentPropsWithoutRef<"blockquote">; /** Typography 无序列表组件属性。 */ type DowncityTypographyUnorderedListProps = React$1.ComponentPropsWithoutRef<"ul">; /** Typography 有序列表组件属性。 */ type DowncityTypographyOrderedListProps = React$1.ComponentPropsWithoutRef<"ol">; /** Typography 列表项组件属性。 */ type DowncityTypographyListItemProps = React$1.ComponentPropsWithoutRef<"li">; /** Typography 行内代码组件属性。 */ type DowncityTypographyInlineCodeProps = React$1.ComponentPropsWithoutRef<"code">; /** FootnoteReference 正文脚注引用属性。 */ interface DowncityFootnoteReferenceProps extends React$1.ComponentPropsWithoutRef<"a"> { /** 引用展示的脚注序号或短标签。 */ label: React$1.ReactNode; } /** Footnotes 脚注区域属性。 */ interface DowncityFootnotesProps extends Omit, "title"> { /** 脚注区域的可选标题。 */ title?: React$1.ReactNode; } /** FootnoteItem 单条脚注属性。 */ interface DowncityFootnoteItemProps extends React$1.ComponentPropsWithoutRef<"li"> { /** 返回正文引用位置的可选链接。 */ back_href?: string; /** 返回正文链接的无障碍标签。 */ back_label?: string; } /** TaskListItem 任务列表项属性。 */ interface DowncityTaskListItemProps extends Omit, "children"> { /** 当前任务是否完成。 */ checked?: boolean; /** 任务项展示的正文内容。 */ children: React$1.ReactNode; } /** DefinitionList 定义列表属性。 */ type DowncityDefinitionListProps = React$1.ComponentPropsWithoutRef<"dl">; /** DefinitionTerm 定义名称属性。 */ type DowncityDefinitionTermProps = React$1.ComponentPropsWithoutRef<"dt">; /** DefinitionDescription 定义说明属性。 */ type DowncityDefinitionDescriptionProps = React$1.ComponentPropsWithoutRef<"dd">; /** ButtonGroup 支持的排列方向。 */ type DowncityButtonGroupOrientation = "horizontal" | "vertical"; /** ButtonGroup 组合容器属性。 */ interface DowncityButtonGroupProps extends React$1.ComponentPropsWithoutRef<"div"> { /** 相邻按钮的排列方向。 */ orientation?: DowncityButtonGroupOrientation; } /** ThemeContainer 支持的主题预设。 */ type DowncityThemeVariant = "neutral" | "zinc" | "slate" | "stone" | "blue"; /** ThemeContainer 支持的明暗模式。 */ type DowncityThemeMode = "light" | "dark"; /** ThemeContainer 主题容器属性。 */ interface DowncityThemeContainerProps extends React$1.ComponentPropsWithoutRef<"div"> { /** 当前组件树使用的颜色主题预设。 */ variant?: DowncityThemeVariant; /** 当前组件树使用的明确明暗模式。 */ mode?: DowncityThemeMode; } /** * Button 组件支持的视觉变体。 */ type DowncityButtonVariant = "primary" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "link"; /** * Button 组件支持的尺寸。 */ type DowncityButtonSize = "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg"; /** * Card 组件支持的尺寸。 */ type DowncityCardSize = "default" | "sm"; /** * DropdownMenu Item 组件支持的变体。 */ type DowncityDropdownMenuItemVariant = "default" | "destructive"; /** ContextMenu 菜单项支持的视觉变体。 */ type DowncityContextMenuItemVariant = "default" | "destructive"; /** Item 通用内容项支持的视觉变体。 */ type DowncityItemVariant = "default" | "outline" | "muted"; /** Item 通用内容项支持的尺寸。 */ type DowncityItemSize = "default" | "sm"; /** Item 图形区域支持的视觉变体。 */ type DowncityItemMediaVariant = "default" | "icon" | "image"; /** Spinner 支持的视觉尺寸。 */ type DowncitySpinnerSize = "sm" | "default" | "lg"; /** Spinner 图标属性。 */ interface DowncitySpinnerProps extends Omit, "size"> { /** 加载图标使用的预设视觉尺寸。 */ size?: DowncitySpinnerSize; } /** Textarea 原生多行输入属性。 */ type TextareaProps = React$1.TextareaHTMLAttributes; /** CodeBlock 组件属性。 */ interface DowncityCodeBlockProps extends React$1.ComponentProps<"pre"> { /** 未经语法高亮处理的原始代码,用于复制操作。 */ code?: string; /** 代码语言标签,例如 `tsx`、`css` 或 `bash`。 */ language?: string; /** 代码块顶部展示的可选文件名或说明。 */ label?: string; /** MDX 编译器写入的原始代码内容。 */ "data-raw"?: string; /** MDX 编译器写入的代码语言。 */ "data-language"?: string; } /** Command 搜索输入框属性。 */ type DowncityCommandInputProps = React$1.ComponentPropsWithoutRef & { /** 搜索输入框左侧展示的可选自定义内容。 */ leading?: React$1.ReactNode; }; /** ContextMenu 浮层属性。 */ interface DowncityContextMenuContentProps extends ContextMenu$1.Popup.Props { /** 浮层相对指针锚点的对齐方向。 */ align?: ContextMenu$1.Positioner.Props["align"]; /** 浮层与对齐位置之间的横向偏移量。 */ alignOffset?: ContextMenu$1.Positioner.Props["alignOffset"]; /** 浮层相对指针锚点出现的一侧。 */ side?: ContextMenu$1.Positioner.Props["side"]; /** 浮层与指针锚点之间的距离。 */ sideOffset?: ContextMenu$1.Positioner.Props["sideOffset"]; } /** ContextMenu 普通菜单项属性。 */ interface DowncityContextMenuItemProps extends ContextMenu$1.Item.Props { /** 是否增加左侧缩进,以便与带图标的菜单项对齐。 */ inset?: boolean; /** 菜单项的视觉语义。 */ variant?: DowncityContextMenuItemVariant; } /** Toaster 属性;实现会忽略 Sonner 的旧 theme 输入并继承 ThemeContainer。 */ type DowncityToasterProps = ToasterProps; /** Select 触发器支持的尺寸。 */ type DowncitySelectTriggerSize = "default" | "sm"; /** Select 触发器属性。 */ interface DowncitySelectTriggerProps extends Select$1.Trigger.Props { /** 触发器的视觉尺寸。 */ size?: DowncitySelectTriggerSize; } /** Select 浮层属性。 */ interface DowncitySelectContentProps extends Select$1.Popup.Props { /** 浮层相对触发器的对齐方向。 */ align?: Select$1.Positioner.Props["align"]; /** 浮层与触发器对齐方向上的偏移量。 */ alignOffset?: Select$1.Positioner.Props["alignOffset"]; /** 浮层相对触发器出现的一侧。 */ side?: Select$1.Positioner.Props["side"]; /** 浮层与触发器之间的距离。 */ sideOffset?: Select$1.Positioner.Props["sideOffset"]; } /** Select 选项属性。 */ interface DowncitySelectItemProps extends Select$1.Item.Props { /** 选项标题下方的补充说明。 */ description?: React$1.ReactNode; } /** Slider 根组件属性,支持单值与范围值。 */ type DowncitySliderProps = Slider$1.Root.Props; /** SettingsContainer 属性。 */ interface DowncitySettingsContainerProps { /** 设置页面中按顺序排列的分区。 */ children: React$1.ReactNode; /** 宿主用于扩展外层布局的类名。 */ className?: string; } /** SettingSection 属性。 */ interface DowncitySettingSectionProps { /** 当前设置分区的可选标题。 */ title?: React$1.ReactNode; /** 当前设置分区的可选补充说明。 */ description?: React$1.ReactNode; /** 标题区域右侧的可选操作。 */ action?: React$1.ReactNode; /** 当前分区承载的设置分组。 */ children: React$1.ReactNode; /** 宿主用于扩展分区布局的类名。 */ className?: string; } /** SettingGroup 属性。 */ interface DowncitySettingGroupProps { /** 分组内按行排列的设置项。 */ children: React$1.ReactNode; /** 宿主用于扩展分组布局的类名。 */ className?: string; } /** SettingItem 属性。 */ interface DowncitySettingItemProps { /** 当前设置项的主要标签。 */ label: React$1.ReactNode; /** 当前设置项的可选补充说明。 */ description?: React$1.ReactNode; /** 当前设置项右侧的控件或状态。 */ children: React$1.ReactNode; /** 宿主用于扩展设置项布局的类名。 */ className?: string; } /** InfoRow 属性。 */ interface DowncityInfoRowProps { /** 信息行左侧的字段标签。 */ label: React$1.ReactNode; /** 信息行右侧的字段值。 */ children: React$1.ReactNode; /** 宿主用于扩展信息行布局的类名。 */ className?: string; } /** ImagePreview 属性。 */ interface DowncityImagePreviewProps { /** 是否展示全屏预览。 */ open: boolean; /** 请求关闭预览时触发。 */ onOpenChange: (open: boolean) => void; /** 要预览的图片地址,可以是 data URL、Blob URL 或远程地址。 */ src: string; /** 图片的替代文字。 */ alt?: string; /** 宿主用于扩展预览根节点的类名。 */ className?: string; } /** 文件上传组件属性。 */ interface DowncityFileUploadProps { /** 当前已选择的文件;由宿主保存并回传,组件不持久化文件。 */ files?: readonly File[]; /** 用户选择或拖入文件后触发,返回完整的新文件列表。 */ onFilesChange: (files: File[]) => void; /** 原生文件输入允许的 MIME 类型或扩展名规则。 */ accept?: string; /** 是否允许一次选择多个文件。 */ multiple?: boolean; /** 是否禁用选择与拖拽交互。 */ disabled?: boolean; /** 可选择文件的最大数量;未提供时不限制。 */ maxFiles?: number; /** 空状态中展示的主要说明。 */ label?: React$1.ReactNode; /** 空状态中展示的补充说明。 */ description?: React$1.ReactNode; /** 宿主用于扩展上传区域布局的类名。 */ className?: string; } /** DataTable 列定义。 */ interface DowncityDataTableColumn { /** 用于 React key 和列语义的稳定标识。 */ id: string; /** 表头中展示的列标题。 */ header: React$1.ReactNode; /** 根据当前行数据渲染单元格内容。 */ cell: (row: Row) => React$1.ReactNode; /** 表头与单元格的可选对齐方式。 */ align?: "left" | "center" | "right"; /** 宿主用于扩展该列单元格样式的类名。 */ className?: string; } /** DataTable 组件属性。 */ interface DowncityDataTableProps { /** 需要展示的行数据。 */ data: readonly Row[]; /** 表格的列定义,决定展示顺序与单元格渲染方式。 */ columns: readonly DowncityDataTableColumn[]; /** 返回行的稳定标识,用于 React key 与交互回调。 */ getRowId: (row: Row, index: number) => React$1.Key; /** 数据为空时展示的可选内容。 */ empty?: React$1.ReactNode; /** 用户点击某行时触发;未提供时行不可点击。 */ onRowClick?: (row: Row) => void; /** 宿主用于扩展表格布局的类名。 */ className?: string; } /** SidebarLayout 属性。 */ interface DowncitySidebarLayoutProps { /** 固定在顶部的可选区域。 */ header?: React$1.ReactNode; /** 可独立滚动的主体内容。 */ children: React$1.ReactNode; /** 固定在底部的可选区域。 */ footer?: React$1.ReactNode; /** 宿主用于扩展外层布局的类名。 */ className?: string; } /** FormField 属性。 */ interface DowncityFormFieldProps { /** 字段名称。 */ label: React$1.ReactNode; /** 字段的可选说明。 */ description?: React$1.ReactNode; /** 字段校验失败时展示的错误内容。 */ error?: React$1.ReactNode; /** 是否显示必填标识。 */ required?: boolean; /** 字段控件。 */ children: React$1.ReactNode; /** 是否使用标签与控件横向排列的紧凑布局。 */ horizontal?: boolean; /** 宿主用于扩展字段布局的类名。 */ className?: string; } /** CollapsibleSettingGroup 属性。 */ interface DowncityCollapsibleSettingGroupProps { /** 分组标题。 */ title: React$1.ReactNode; /** 标题左侧的可选内容。 */ leading?: React$1.ReactNode; /** 标题右侧的可选数量。 */ count?: number; /** 展开的分组内容。 */ children: React$1.ReactNode; /** 初始展开状态。 */ defaultOpen?: boolean; /** 宿主用于扩展分组布局的类名。 */ className?: string; } /** SettingList 属性。 */ interface DowncitySettingListProps { /** 列表内容。 */ children?: React$1.ReactNode; /** 没有内容时展示的空状态。 */ empty?: React$1.ReactNode; /** 是否展示加载状态。 */ loading?: boolean; /** 宿主用于扩展列表布局的类名。 */ className?: string; } /** * Workboard 组件公开类型。 * * 关键点(中文) * - 这里导出的是“全局 workboard”板面类型,而不是单个 agent 面板。 * - UI 组件只消费聚合后的公开状态,不知道 plugin 内部实现。 */ /** * 单个公开活动项。 */ interface DowncityWorkboardActivityItem { /** * 活动稳定标识。 */ id: string; /** * 活动类型。 */ kind: "focus" | "progress" | "idle"; /** * 对外标题。 */ title: string; /** * 对外摘要。 */ summary: string; /** * 当前状态。 */ status: "active" | "steady" | "waiting" | "issue"; /** * 最近更新时间(ISO8601)。 */ updatedAt: string; /** * 对外安全标签。 */ tags: string[]; } /** * 单个公开线索项。 */ interface DowncityWorkboardSignalItem { /** * 线索名称。 */ label: string; /** * 线索值。 */ value: string; /** * 线索语气。 */ tone: "neutral" | "accent" | "warning"; } /** * 单个 agent 的公开快照。 */ interface DowncityWorkboardAgentSnapshot { /** * agent 展示名称。 */ name: string; /** * 是否运行中。 */ running: boolean; /** * 对外状态文案。 */ statusText: string; /** * 最近采样时间(ISO8601)。 */ collectedAt: string; /** * headline。 */ headline: string; /** * posture。 */ posture: string; /** * momentum。 */ momentum: string; /** * 可见性说明。 */ visibilityNote: string; /** * 当前公开活动列表。 */ current: DowncityWorkboardActivityItem[]; /** * 最近公开活动列表。 */ recent: DowncityWorkboardActivityItem[]; /** * 公开线索列表。 */ signals: DowncityWorkboardSignalItem[]; } /** * 全局看板中的单个 agent 项。 */ interface DowncityWorkboardAgentItem { /** * agent 稳定标识。 */ id: string; /** * agent 展示名称。 */ name: string; /** * 当前是否运行中。 */ running: boolean; /** * headline。 */ headline: string; /** * posture。 */ posture: string; /** * momentum。 */ momentum: string; /** * 状态摘要文案。 */ statusText: string; /** * 最近采样时间(ISO8601)。 */ collectedAt: string; /** * 当前公开活动数量。 */ currentCount: number; /** * 近期片段数量。 */ recentCount: number; /** * 公开线索数量。 */ signalCount: number; /** * 该 agent 的完整公开快照。 */ snapshot: DowncityWorkboardAgentSnapshot; } /** * 全局看板顶部摘要。 */ interface DowncityWorkboardBoardSummary { /** * agent 总数。 */ totalAgents: number; /** * live agent 数量。 */ liveAgents: number; /** * 呈现活跃状态的 agent 数量。 */ activeAgents: number; /** * 安静中的 agent 数量。 */ quietAgents: number; } /** * 全局 workboard 板面。 */ interface DowncityWorkboardBoardSnapshot { /** * 顶部摘要。 */ summary: DowncityWorkboardBoardSummary; /** * agent 列表。 */ agents: DowncityWorkboardAgentItem[]; /** * 最近采样时间(ISO8601)。 */ collectedAt: string; } /** * Workboard 组件属性。 */ interface DowncityWorkboardProps { /** * 当前板面。 */ board: DowncityWorkboardBoardSnapshot | null; /** * 当前是否处于刷新中。 */ loading?: boolean; /** * 当前选中的 agent id。 */ selectedAgentId?: string; /** * 外层接收选中变化。 */ onSelectAgent?: (agentId: string) => void; /** * 外层触发刷新。 */ onRefresh?: () => void; /** * 自定义类名。 */ className?: string; } /** * Workboard 主舞台内部类型。 * * 关键点(中文) * - 这些类型只服务于 Workboard 的舞台布局与聚焦交互。 * - 它们仍然集中放在 `types/` 下,避免在组件文件里散落领域类型定义。 */ /** * Workboard 舞台层级。 */ type DowncityWorkboardStageLevel = "clusters" | "agents"; /** * 像素角色在地图上的朝向。 */ type DowncityWorkboardMotionDirection = "left" | "right" | "up" | "down"; /** * 像素角色当前的运动状态。 */ type DowncityWorkboardMotionState = "walking" | "dwell"; /** * Workboard 公共状态分区标识。 */ type DowncityWorkboardZoneId = "engaged" | "steady" | "quiet" | "drift"; /** * 单个状态分区的视觉与文案定义。 */ interface DowncityWorkboardZoneDefinition { /** * 分区唯一标识。 */ id: DowncityWorkboardZoneId; /** * 分区标题。 */ title: string; /** * 分区辅助标题。 */ subtitle: string; /** * 分区说明文本。 */ description: string; /** * 分区徽标文案。 */ badge: string; /** * 分区背景样式类名。 */ areaClassName: string; /** * 分区边界样式类名。 */ borderClassName: string; /** * 分区辉光样式类名。 */ glowClassName: string; /** * 节点底板样式类名。 */ nodeClassName: string; /** * 连线样式类名。 */ lineClassName: string; } /** * 舞台上的绝对坐标点。 */ interface DowncityWorkboardStagePoint { /** * 舞台横向坐标,单位为像素。 */ x: number; /** * 舞台纵向坐标,单位为像素。 */ y: number; } /** * 动效计算后的节点位置。 */ interface DowncityWorkboardMotionFrame { /** * 当前横向坐标。 */ x: number; /** * 当前纵向坐标。 */ y: number; /** * 当前角色朝向。 */ direction: DowncityWorkboardMotionDirection; /** * 当前运动状态。 */ state: DowncityWorkboardMotionState; } /** * 舞台 hover 标签。 */ interface DowncityWorkboardHoverTag { /** * 标签唯一标识。 */ id: string; /** * 展示文本。 */ label: string; /** * 标签指向的横向坐标。 */ x: number; /** * 标签指向的纵向坐标。 */ y: number; } /** * Workboard 游戏地图配置类型。 * * 关键点(中文) * - 这里定义的是把公开 workboard 数据映射成“游戏地图世界”的中间层。 * - 上层可以把它交给 Pxlkit,也可以交给当前自研地图渲染器。 * - 该模型只描述舞台、节点、路线、标签和热点,不关心 plugin 或 console 内部实现。 */ /** * 地图中的单个区域标签。 */ interface DowncityWorkboardGameAreaLabel { /** * 标签稳定标识。 */ id: string; /** * 标签文案。 */ label: string; /** * 标签横向坐标。 */ x: number; /** * 标签纵向坐标。 */ y: number; } /** * 地图中的单个兴趣点或场景道具。 */ interface DowncityWorkboardGamePointOfInterest { /** * 道具稳定标识。 */ id: string; /** * 道具类型。 */ kind: "desk" | "rack" | "console" | "crate" | "bench" | "plant" | "hub"; /** * 道具所在横向坐标。 */ x: number; /** * 道具所在纵向坐标。 */ y: number; /** * 该道具是否为当前聚焦热点。 */ active?: boolean; } /** * 地图中的单条可视化路线。 */ interface DowncityWorkboardGameRoute { /** * 路线稳定标识。 */ id: string; /** * 路径点集合。 */ points: DowncityWorkboardStagePoint[]; /** * 路线类别。 */ kind: "corridor" | "patrol" | "hub-link"; /** * 是否处于高亮状态。 */ active?: boolean; /** * 该路线所属的状态簇。 * 仅当路线和某个分区直接绑定时提供,便于舞台按簇过滤。 */ zoneId?: DowncityWorkboardZoneId; /** * 角色经过路径点时的停留比例。 * 用于让 actor 在门口、hub、工位等关键点有短暂停靠感。 */ dwellRatio?: number; /** * 路线坐标吸附到像素网格的尺寸。 * 该值会传给 motion 层,确保 movement 更像像素游戏。 */ snapSize?: number; /** * 路线在地图上的短标签。 * 当前主要用于自定义 host 或后续增强的路线标记。 */ label?: string; } /** * 地图中的单个 agent actor。 */ interface DowncityWorkboardGameActor { /** * actor 对应的 agent id。 */ id: string; /** * 关联的 agent 公开项。 */ agent: DowncityWorkboardAgentItem; /** * actor 当前所处分区。 */ zoneId: DowncityWorkboardZoneId; /** * actor 在 atlas 总览层的锚点。 */ overviewAnchor: DowncityWorkboardStagePoint; /** * actor 在 atlas 总览层对应的巡游路线。 */ overviewRoute: DowncityWorkboardStagePoint[]; /** * actor 在 focused 局部舞台中的锚点。 * 只有进入该分区内部后才会被消费。 */ focusedAnchor?: DowncityWorkboardStagePoint; /** * actor 在 focused 局部舞台中所绑定的巡游路线 id。 * 渲染器会据此关联 patrol 路线并驱动节点运动。 */ focusedRouteId?: string; /** * actor 在 atlas 中进入当前分区的门口坐标。 * 渲染器可以用它表现角色从公共通道切入某个状态簇。 */ overviewGate: DowncityWorkboardStagePoint; /** * actor 在 focused 舞台中的工位坐标。 * 它通常接近 focusedAnchor,但语义上表示可停靠的 station。 */ focusedStation?: DowncityWorkboardStagePoint; /** * 该 actor 是否处于当前 spotlight。 */ active?: boolean; } /** * 地图中的单个状态簇分区。 */ interface DowncityWorkboardGameZone { /** * 分区标识。 */ id: DowncityWorkboardZoneId; /** * 分区标题。 */ title: string; /** * 分区副标题。 * 用于 atlas 标签和 focused 顶部提示语。 */ subtitle: string; /** * 分区的公开说明。 * 用于 inspector 或主舞台边角说明。 */ description: string; /** * 分区短徽标。 * 通常用于 focused hub 顶部的小型状态牌。 */ badge: string; /** * 分区当前 agent 数量。 */ count: number; /** * 该分区是否为当前活跃分区。 */ active: boolean; /** * 分区 hub 坐标。 */ hub: DowncityWorkboardStagePoint; } /** * 完整的 workboard 游戏地图配置。 */ interface DowncityWorkboardGameMapConfig { /** * 原始公开 board 快照。 */ board: DowncityWorkboardBoardSnapshot; /** * 当前活跃分区。 */ activeZoneId: DowncityWorkboardZoneId; /** * 当前选中的 agent id。 */ selectedAgentId?: string; /** * atlas 层的分区摘要。 */ zones: DowncityWorkboardGameZone[]; /** * atlas 与 focused 共用的 actor 集合。 */ actors: DowncityWorkboardGameActor[]; /** * atlas 层通道。 */ corridors: DowncityWorkboardGameRoute[]; /** * focused 层巡游路线。 */ patrols: DowncityWorkboardGameRoute[]; /** * focused 层兴趣点与道具。 */ pointsOfInterest: DowncityWorkboardGamePointOfInterest[]; /** * focused 层区域标签。 */ areaLabels: DowncityWorkboardGameAreaLabel[]; } /** * Workboard 游戏化 UI 组件类型。 * * 关键点(中文) * - 这里只描述 Workboard game shell 内部组件的 props。 * - 类型集中放在 types/ 下,避免 renderer 文件继续混入类型定义。 * - 这些类型不表达 plugin 或 console 语义,只表达游戏地图 UI 的组合关系。 */ /** * Workboard atlas 世界地图组件属性。 */ interface DowncityWorkboardGameAtlasProps { /** * 当前公开 board 快照。 */ board: DowncityWorkboardBoardSnapshot; /** * 当前游戏地图配置。 */ gameMap: DowncityWorkboardGameMapConfig; /** * 当前活跃分区。 */ activeZoneId: DowncityWorkboardZoneId; /** * 当前选中的 agent id。 */ selectedAgentId?: string; /** * 当前地图流速档位。 */ flowMode: "cruise" | "turbo"; /** * 当前 motion hook 计算出的 actor 坐标。 */ motionFrames: Record; /** * 选择状态簇的回调。 */ onSelectZone: (zoneId: DowncityWorkboardZoneId) => void; /** * 选择 agent 的回调。 */ onSelectAgent?: (agentId: string, zoneId: DowncityWorkboardZoneId) => void; } /** * Workboard cluster room 场景组件属性。 */ interface DowncityWorkboardGameRoomProps { /** * 当前房间所属状态簇。 */ zone: DowncityWorkboardZoneDefinition; /** * 当前房间中的 agent 列表。 */ items: DowncityWorkboardAgentItem[]; /** * 当前游戏地图配置。 */ gameMap: DowncityWorkboardGameMapConfig; /** * 当前选中的 agent id。 */ selectedAgentId?: string; /** * 当前 motion hook 计算出的 actor 坐标。 */ motionFrames?: Record; /** * 当前地图流速档位。 */ flowMode: "cruise" | "turbo"; /** * 选择 agent 的回调。 */ onSelectAgent?: (agentId: string) => void; } /** * Workboard 游戏化 HUD 属性。 */ interface DowncityWorkboardGameHudProps { /** * 当前公开 board 快照。 */ board: DowncityWorkboardBoardSnapshot; /** * 当前舞台层级。 */ stageLevel: DowncityWorkboardStageLevel; /** * 当前活跃分区。 */ activeZone: DowncityWorkboardZoneDefinition; /** * 当前选中的 agent。 */ selected: DowncityWorkboardAgentItem | null; /** * 当前地图流速档位。 */ flowMode: "cruise" | "turbo"; /** * 是否正在刷新。 */ loading?: boolean; /** * 是否处于全屏。 */ isFullscreen: boolean; /** * 底部 portal rail 展示的状态簇集合。 */ zones: DowncityWorkboardGameZone[]; /** * 从底部 portal rail 进入某个状态簇。 */ onSelectZone?: (zoneId: DowncityWorkboardZoneId) => void; /** * 返回 atlas 的回调。 */ onBackToAtlas?: () => void; /** * 切换地图流速的回调。 */ onToggleFlowMode: () => void; /** * 刷新数据的回调。 */ onRefresh?: () => void; /** * 切换全屏的回调。 */ onToggleFullscreen: () => void; } /** * Workboard 游戏化 inspector 属性。 */ interface DowncityWorkboardGameInspectorProps { /** * 当前选中的 agent。 */ selected: DowncityWorkboardAgentItem | null; /** * 当前活跃分区。 */ activeZone: DowncityWorkboardZoneDefinition; /** * 当前分区里的 agent 列表。 */ selectedPeers: DowncityWorkboardAgentItem[]; /** * 当前舞台层级。 */ stageLevel: DowncityWorkboardStageLevel; /** * 是否折叠 inspector。 */ collapsed: boolean; /** * 切换 inspector 折叠状态。 */ onToggleCollapsed?: () => void; /** * 选择 agent 的回调。 */ onSelectAgent?: (agentId: string) => void; } /** * Workboard hover 标签状态更新函数。 */ type DowncityWorkboardHoverTagSetter = (tag: DowncityWorkboardHoverTag | null) => void; declare const buttonVariants: (props?: ({ variant?: "default" | "link" | "outline" | "primary" | "secondary" | "ghost" | "destructive" | null | undefined; size?: "default" | "sm" | "lg" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare function Button({ className, variant, size, children, ...props }: Button$1.Props & VariantProps): react_jsx_runtime.JSX.Element; declare function ButtonGroup({ className, orientation, ...props }: DowncityButtonGroupProps): react_jsx_runtime.JSX.Element; /** 为整棵组件树提供唯一主题。 */ declare function ThemeContainer({ children, className, mode, variant, ...props }: DowncityThemeContainerProps): react_jsx_runtime.JSX.Element; declare const Accordion: ({ className, ...props }: Accordion$1.Root.Props) => react_jsx_runtime.JSX.Element; declare const AccordionItem: ({ className, ...props }: Accordion$1.Item.Props) => react_jsx_runtime.JSX.Element; declare const AccordionTrigger: ({ className, children, ...props }: Accordion$1.Trigger.Props) => react_jsx_runtime.JSX.Element; declare const AccordionContent: ({ className, ...props }: Accordion$1.Panel.Props) => react_jsx_runtime.JSX.Element; declare const alert_variants: (props?: ({ variant?: "default" | "destructive" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare const Alert: ({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps) => react_jsx_runtime.JSX.Element; declare const AlertTitle: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element; declare const AlertDescription: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element; declare const AlertDialog: typeof AlertDialog$1.Root; declare const AlertDialogTrigger: (props: AlertDialog$1.Trigger.Props) => react_jsx_runtime.JSX.Element; declare const AlertDialogClose: (props: AlertDialog$1.Close.Props) => react_jsx_runtime.JSX.Element; declare const AlertDialogContent: ({ className, ...props }: AlertDialog$1.Popup.Props) => react_jsx_runtime.JSX.Element; declare const AlertDialogHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element; declare const AlertDialogFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element; declare const AlertDialogTitle: ({ className, ...props }: AlertDialog$1.Title.Props) => react_jsx_runtime.JSX.Element; declare const AlertDialogDescription: ({ className, ...props }: AlertDialog$1.Description.Props) => react_jsx_runtime.JSX.Element; declare const Avatar: ({ className, ...props }: Avatar$1.Root.Props) => react_jsx_runtime.JSX.Element; declare const AvatarImage: ({ className, ...props }: Avatar$1.Image.Props) => react_jsx_runtime.JSX.Element; declare const AvatarFallback: ({ className, ...props }: Avatar$1.Fallback.Props) => react_jsx_runtime.JSX.Element; declare const badgeVariants: (props?: ({ variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps): React$1.ReactElement>; declare function Card({ className, size, ...props }: React$1.ComponentProps<"div"> & { size?: "default" | "sm"; }): react_jsx_runtime.JSX.Element; declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): react_jsx_runtime.JSX.Element; declare function CodeBlock({ children, className, code, language, label, "data-raw": data_raw, "data-language": data_language, style, ...props }: DowncityCodeBlockProps): react_jsx_runtime.JSX.Element; declare function FormField({ label, description, error, required, children, horizontal, className }: DowncityFormFieldProps): react_jsx_runtime.JSX.Element; declare function DataTable({ data, columns, getRowId, empty, onRowClick, className }: DowncityDataTableProps): react_jsx_runtime.JSX.Element; declare function FileUpload({ files, onFilesChange, accept, multiple, disabled, maxFiles, label, description, className }: DowncityFileUploadProps): react_jsx_runtime.JSX.Element; declare const HoverCard: ({ delay, ...props }: Tooltip$1.Root.Props & { delay?: number; }) => react_jsx_runtime.JSX.Element; declare const HoverCardTrigger: (props: Tooltip$1.Trigger.Props) => react_jsx_runtime.JSX.Element; declare const HoverCardContent: ({ className, side, sideOffset, align, ...props }: Tooltip$1.Popup.Props & Pick) => react_jsx_runtime.JSX.Element; declare function ImagePreview({ open, onOpenChange, src, alt, className }: DowncityImagePreviewProps): React$1.ReactPortal | null; declare function MenuSurface({ className, children, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function MenuGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function MenuLabel({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function MenuSeparator({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function MenuEmpty({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function Command({ className, ...props }: React$1.ComponentPropsWithoutRef): react_jsx_runtime.JSX.Element; declare function CommandInput({ className, leading, ...props }: DowncityCommandInputProps): react_jsx_runtime.JSX.Element; declare function CommandList({ className, ...props }: React$1.ComponentPropsWithoutRef): react_jsx_runtime.JSX.Element; declare function CommandEmpty({ className, ...props }: React$1.ComponentPropsWithoutRef): react_jsx_runtime.JSX.Element; declare function CommandGroup({ className, ...props }: React$1.ComponentPropsWithoutRef): react_jsx_runtime.JSX.Element; declare function CommandItem({ className, ...props }: React$1.ComponentPropsWithoutRef): react_jsx_runtime.JSX.Element; declare function CommandSeparator({ className, ...props }: React$1.ComponentPropsWithoutRef): react_jsx_runtime.JSX.Element; declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element; declare function ContextMenu({ ...props }: ContextMenu$1.Root.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuPortal({ container, ...props }: ContextMenu$1.Portal.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuTrigger({ ...props }: ContextMenu$1.Trigger.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: DowncityContextMenuContentProps): react_jsx_runtime.JSX.Element; declare function ContextMenuGroup({ ...props }: ContextMenu$1.Group.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuLabel({ className, ...props }: ContextMenu$1.GroupLabel.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuItem({ className, inset, variant, ...props }: DowncityContextMenuItemProps): react_jsx_runtime.JSX.Element; declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: ContextMenu$1.CheckboxItem.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuRadioGroup({ ...props }: ContextMenu$1.RadioGroup.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuRadioItem({ className, children, ...props }: ContextMenu$1.RadioItem.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuSeparator({ className, ...props }: ContextMenu$1.Separator.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element; declare function ContextMenuSub({ ...props }: ContextMenu$1.SubmenuRoot.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuSubTrigger({ className, children, ...props }: ContextMenu$1.SubmenuTrigger.Props): react_jsx_runtime.JSX.Element; declare function ContextMenuSubContent({ align, alignOffset, side, sideOffset, ...props }: DowncityContextMenuContentProps): react_jsx_runtime.JSX.Element; declare function Dialog(props: Dialog$1.Root.Props): react_jsx_runtime.JSX.Element; declare function DialogTrigger(props: Dialog$1.Trigger.Props): react_jsx_runtime.JSX.Element; declare function DialogPortal({ container, ...props }: Dialog$1.Portal.Props): react_jsx_runtime.JSX.Element; declare function DialogClose(props: Dialog$1.Close.Props): react_jsx_runtime.JSX.Element; declare function DialogOverlay({ className, ...props }: Dialog$1.Backdrop.Props): react_jsx_runtime.JSX.Element; declare function DialogContent({ className, children, showCloseButton, ...props }: Dialog$1.Popup.Props & { showCloseButton?: boolean; }): react_jsx_runtime.JSX.Element; declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function DialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function DialogTitle({ className, ...props }: Dialog$1.Title.Props): react_jsx_runtime.JSX.Element; declare function DialogDescription({ className, ...props }: Dialog$1.Description.Props): react_jsx_runtime.JSX.Element; declare const Drawer: typeof Drawer$1.Root; declare const DrawerTrigger: (props: Drawer$1.Trigger.Props) => react_jsx_runtime.JSX.Element; declare const DrawerClose: (props: Drawer$1.Close.Props) => react_jsx_runtime.JSX.Element; declare const DrawerContent: ({ className, ...props }: Drawer$1.Popup.Props) => react_jsx_runtime.JSX.Element; declare const DrawerHeader: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element; declare const DrawerFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element; declare const DrawerTitle: ({ className, ...props }: Drawer$1.Title.Props) => react_jsx_runtime.JSX.Element; declare const DrawerDescription: ({ className, ...props }: Drawer$1.Description.Props) => react_jsx_runtime.JSX.Element; declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): react_jsx_runtime.JSX.Element; declare const InputGroup: ({ className, ...props }: React$1.ComponentProps<"div">) => react_jsx_runtime.JSX.Element; declare const InputGroupAddon: ({ className, align, ...props }: React$1.ComponentProps<"div"> & { align?: "inline-start" | "inline-end"; }) => react_jsx_runtime.JSX.Element; declare const InputGroupInput: ({ className, ...props }: React$1.ComponentProps<"input">) => react_jsx_runtime.JSX.Element; declare const InputGroupTextarea: ({ className, ...props }: React$1.ComponentProps<"textarea">) => react_jsx_runtime.JSX.Element; declare function Empty({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function EmptyHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function EmptyMedia({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function EmptyTitle({ className, ...props }: React$1.ComponentProps<"h3">): react_jsx_runtime.JSX.Element; declare function EmptyDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element; declare function EmptyContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare const item_variants: (props?: ({ variant?: "default" | "outline" | "muted" | null | undefined; size?: "default" | "sm" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps): React$1.ReactElement>; declare function ItemMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & { variant?: DowncityItemMediaVariant; }): react_jsx_runtime.JSX.Element; declare function ItemContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function ItemTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function ItemDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element; declare function ItemActions({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function Kbd({ className, ...props }: React$1.ComponentProps<"kbd">): react_jsx_runtime.JSX.Element; declare function KbdGroup({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element; declare function Label({ className, ...props }: React$1.ComponentProps<"label">): react_jsx_runtime.JSX.Element; declare function DropdownMenu({ ...props }: Menu.Root.Props): react_jsx_runtime.JSX.Element; declare function DropdownMenuPortal({ container, ...props }: Menu.Portal.Props): react_jsx_runtime.JSX.Element; declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): react_jsx_runtime.JSX.Element; declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: Menu.Popup.Props & Pick): react_jsx_runtime.JSX.Element; declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): react_jsx_runtime.JSX.Element; declare function DropdownMenuLabel({ className, inset, ...props }: Menu.GroupLabel.Props & { inset?: boolean; }): react_jsx_runtime.JSX.Element; declare function DropdownMenuItem({ className, inset, variant, ...props }: Menu.Item.Props & { inset?: boolean; variant?: "default" | "destructive"; }): react_jsx_runtime.JSX.Element; declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): react_jsx_runtime.JSX.Element; declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: Menu.SubmenuTrigger.Props & { inset?: boolean; }): react_jsx_runtime.JSX.Element; declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React$1.ComponentProps): react_jsx_runtime.JSX.Element; declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: Menu.CheckboxItem.Props & { inset?: boolean; }): react_jsx_runtime.JSX.Element; declare function DropdownMenuRadioGroup({ ...props }: Menu.RadioGroup.Props): react_jsx_runtime.JSX.Element; declare function DropdownMenuRadioItem({ className, children, inset, ...props }: Menu.RadioItem.Props & { inset?: boolean; }): react_jsx_runtime.JSX.Element; declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): react_jsx_runtime.JSX.Element; declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element; declare function Popover({ ...props }: Popover$1.Root.Props): react_jsx_runtime.JSX.Element; declare function PopoverTrigger({ ...props }: Popover$1.Trigger.Props): react_jsx_runtime.JSX.Element; declare function PopoverContent({ className, side, sideOffset, align, alignOffset, ...props }: Popover$1.Popup.Props & Pick): react_jsx_runtime.JSX.Element; declare const Pagination: ({ className, ...props }: React$1.ComponentProps<"nav">) => react_jsx_runtime.JSX.Element; declare const PaginationContent: ({ className, ...props }: React$1.ComponentProps<"ul">) => react_jsx_runtime.JSX.Element; declare const PaginationItem: ({ className, ...props }: React$1.ComponentProps<"li">) => react_jsx_runtime.JSX.Element; declare const PaginationLink: ({ className, isActive, ...props }: React$1.ComponentProps<"a"> & { isActive?: boolean; }) => react_jsx_runtime.JSX.Element; declare const PaginationPrevious: (props: React$1.ComponentProps) => react_jsx_runtime.JSX.Element; declare const PaginationNext: (props: React$1.ComponentProps) => react_jsx_runtime.JSX.Element; declare const PaginationEllipsis: ({ className, ...props }: React$1.ComponentProps<"span">) => react_jsx_runtime.JSX.Element; declare const Progress: React$1.ForwardRefExoticComponent & React$1.RefAttributes>; declare const ProgressTrack: ({ className, ...props }: Progress$1.Track.Props) => react_jsx_runtime.JSX.Element; declare const ProgressIndicator: ({ className, ...props }: Progress$1.Indicator.Props) => react_jsx_runtime.JSX.Element; declare const ProgressLabel: ({ className, ...props }: Progress$1.Label.Props) => react_jsx_runtime.JSX.Element; declare const ProgressValue: ({ className, ...props }: Progress$1.Value.Props) => react_jsx_runtime.JSX.Element; declare const RadioGroup: (props: RadioGroup$1.Props) => React.JSX.Element; declare const RadioGroupItem: ({ className, ...props }: Radio.Root.Props) => react_jsx_runtime.JSX.Element; declare const ResizablePanelGroup: ({ className, ...props }: Primitive.GroupProps) => react_jsx_runtime.JSX.Element; declare const ResizablePanel: (props: Primitive.PanelProps) => react_jsx_runtime.JSX.Element; declare const ResizableHandle: ({ className, withHandle, ...props }: Primitive.SeparatorProps & { withHandle?: boolean; }) => react_jsx_runtime.JSX.Element; declare const ScrollArea: React$1.ForwardRefExoticComponent & React$1.RefAttributes>; declare const ScrollAreaViewport: ({ className, ...props }: ScrollArea$1.Viewport.Props) => react_jsx_runtime.JSX.Element; declare const ScrollAreaContent: ({ className, ...props }: ScrollArea$1.Content.Props) => react_jsx_runtime.JSX.Element; declare const ScrollAreaScrollbar: ({ className, ...props }: ScrollArea$1.Scrollbar.Props) => react_jsx_runtime.JSX.Element; declare function Separator({ className, orientation, ...props }: Separator$1.Props): react_jsx_runtime.JSX.Element; declare const Select: typeof Select$1.Root; declare function SelectValue(props: Select$1.Value.Props): react_jsx_runtime.JSX.Element; declare function SelectTrigger({ className, children, size, ...props }: DowncitySelectTriggerProps): react_jsx_runtime.JSX.Element; declare function SelectContent({ className, children, align, alignOffset, side, sideOffset, ...props }: DowncitySelectContentProps): react_jsx_runtime.JSX.Element; declare function SelectGroup({ className, ...props }: Select$1.Group.Props): react_jsx_runtime.JSX.Element; declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): react_jsx_runtime.JSX.Element; declare function SelectItem({ className, children, description, ...props }: DowncitySelectItemProps): react_jsx_runtime.JSX.Element; declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): react_jsx_runtime.JSX.Element; declare function SettingsContainer({ children, className, }: DowncitySettingsContainerProps): react_jsx_runtime.JSX.Element; declare function SettingSection({ title, description, action, children, className, }: DowncitySettingSectionProps): react_jsx_runtime.JSX.Element; declare function SettingGroup({ children, className }: DowncitySettingGroupProps): react_jsx_runtime.JSX.Element; declare function SettingItem({ label, description, children, className, }: DowncitySettingItemProps): react_jsx_runtime.JSX.Element; declare function InfoRow({ label, children, className }: DowncityInfoRowProps): react_jsx_runtime.JSX.Element; /** 可折叠设置分组,适合低频或进阶配置。 */ declare function CollapsibleSettingGroup({ title, leading, count, children, defaultOpen, className }: DowncityCollapsibleSettingGroupProps): react_jsx_runtime.JSX.Element; /** 设置列表的加载与空状态容器。 */ declare function SettingList({ children, empty, loading, className }: DowncitySettingListProps): react_jsx_runtime.JSX.Element; declare function SidebarLayout({ header, children, footer, className }: DowncitySidebarLayoutProps): react_jsx_runtime.JSX.Element; declare function Sheet({ ...props }: Dialog$1.Root.Props): react_jsx_runtime.JSX.Element; declare function SheetTrigger({ ...props }: Dialog$1.Trigger.Props): react_jsx_runtime.JSX.Element; declare function SheetClose({ ...props }: Dialog$1.Close.Props): react_jsx_runtime.JSX.Element; declare function SheetPortal({ container, ...props }: Dialog$1.Portal.Props): react_jsx_runtime.JSX.Element; declare function SheetOverlay({ className, ...props }: Dialog$1.Backdrop.Props): react_jsx_runtime.JSX.Element; declare function SheetContent({ className, children, side, showCloseButton, ...props }: Dialog$1.Popup.Props & { side?: "top" | "right" | "bottom" | "left"; showCloseButton?: boolean; }): react_jsx_runtime.JSX.Element; declare function SheetHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function SheetFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare function SheetTitle({ className, ...props }: Dialog$1.Title.Props): react_jsx_runtime.JSX.Element; declare function SheetDescription({ className, ...props }: Dialog$1.Description.Props): react_jsx_runtime.JSX.Element; declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element; declare const Table: ({ className, ...props }: React$1.ComponentProps<"table">) => react_jsx_runtime.JSX.Element; declare const TableHeader: ({ className, ...props }: React$1.ComponentProps<"thead">) => react_jsx_runtime.JSX.Element; declare const TableBody: ({ className, ...props }: React$1.ComponentProps<"tbody">) => react_jsx_runtime.JSX.Element; declare const TableFooter: ({ className, ...props }: React$1.ComponentProps<"tfoot">) => react_jsx_runtime.JSX.Element; declare const TableRow: ({ className, ...props }: React$1.ComponentProps<"tr">) => react_jsx_runtime.JSX.Element; declare const TableHead: ({ className, ...props }: React$1.ComponentProps<"th">) => react_jsx_runtime.JSX.Element; declare const TableCell: ({ className, ...props }: React$1.ComponentProps<"td">) => react_jsx_runtime.JSX.Element; declare const TableCaption: ({ className, ...props }: React$1.ComponentProps<"caption">) => react_jsx_runtime.JSX.Element; declare function Slider({ className, defaultValue, value, min, max, ...props }: DowncitySliderProps): react_jsx_runtime.JSX.Element; declare function Spinner({ className, size, ...props }: DowncitySpinnerProps): react_jsx_runtime.JSX.Element; declare function Switch({ className, ...props }: Switch$1.Root.Props): react_jsx_runtime.JSX.Element; declare function Tabs({ className, orientation, ...props }: Tabs$1.Root.Props): react_jsx_runtime.JSX.Element; declare const tabsListVariants: (props?: ({ variant?: "default" | "line" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare function TabsList({ className, variant, ...props }: Tabs$1.List.Props & VariantProps): react_jsx_runtime.JSX.Element; declare function TabsTrigger({ className, ...props }: Tabs$1.Tab.Props): react_jsx_runtime.JSX.Element; declare function TabsContent({ className, ...props }: Tabs$1.Panel.Props): react_jsx_runtime.JSX.Element; /** * Downcity Textarea 基础组件。 * * 关键说明(中文) * - 用于多行文本、Prompt、环境变量片段等输入场景。 * - 默认保留较舒展的内边距,适合配置面板中的长文本编辑。 */ declare const Textarea: React$1.ForwardRefExoticComponent>; declare function Toaster({ theme: _legacy_theme, ...props }: DowncityToasterProps): react_jsx_runtime.JSX.Element; declare const toggleVariants: (props?: ({ variant?: "default" | "outline" | null | undefined; size?: "default" | "sm" | "lg" | null | undefined; } & class_variance_authority_types.ClassProp) | undefined) => string; declare function Toggle({ className, variant, size, children, ...props }: Toggle$1.Props & VariantProps): react_jsx_runtime.JSX.Element; declare const ToggleGroup: React$1.ForwardRefExoticComponent & React$1.RefAttributes>; declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle$1.Props & VariantProps): react_jsx_runtime.JSX.Element; declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): react_jsx_runtime.JSX.Element; declare function Tooltip({ ...props }: Tooltip$1.Root.Props): react_jsx_runtime.JSX.Element; declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): react_jsx_runtime.JSX.Element; declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick): react_jsx_runtime.JSX.Element; declare const H1: React$1.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & React$1.RefAttributes>; declare const H2: React$1.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & React$1.RefAttributes>; declare const H3: React$1.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & React$1.RefAttributes>; declare const H4: React$1.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & React$1.RefAttributes>; declare const H5: React$1.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & React$1.RefAttributes>; declare const H6: React$1.ForwardRefExoticComponent, HTMLHeadingElement>, "ref"> & React$1.RefAttributes>; declare const Paragraph: React$1.ForwardRefExoticComponent, HTMLParagraphElement>, "ref"> & React$1.RefAttributes>; declare const Lead: React$1.ForwardRefExoticComponent, HTMLParagraphElement>, "ref"> & React$1.RefAttributes>; declare const Small: React$1.ForwardRefExoticComponent, HTMLElement>, "ref"> & React$1.RefAttributes>; declare const Muted: React$1.ForwardRefExoticComponent, HTMLSpanElement>, "ref"> & React$1.RefAttributes>; declare const Strong: React$1.ForwardRefExoticComponent, HTMLElement>, "ref"> & React$1.RefAttributes>; declare const Emphasis: React$1.ForwardRefExoticComponent, HTMLElement>, "ref"> & React$1.RefAttributes>; declare const InlineCode: React$1.ForwardRefExoticComponent, HTMLElement>, "ref"> & React$1.RefAttributes>; declare const Blockquote: React$1.ForwardRefExoticComponent, HTMLQuoteElement>, "ref"> & React$1.RefAttributes>; declare const UnorderedList: React$1.ForwardRefExoticComponent, HTMLUListElement>, "ref"> & React$1.RefAttributes>; declare const OrderedList: React$1.ForwardRefExoticComponent, HTMLOListElement>, "ref"> & React$1.RefAttributes>; declare const ListItem: React$1.ForwardRefExoticComponent, HTMLLIElement>, "ref"> & React$1.RefAttributes>; declare const Anchor: React$1.ForwardRefExoticComponent, HTMLAnchorElement>, "ref"> & React$1.RefAttributes>; declare const Hr: React$1.ForwardRefExoticComponent, HTMLHRElement>, "ref"> & React$1.RefAttributes>; /** 渲染与正文共享主题语义的注释块。 */ declare function Annotation({ children, className, title, tone, ...props }: DowncityAnnotationProps): react_jsx_runtime.JSX.Element; /** 渲染正文中的可访问脚注引用。 */ declare function FootnoteReference({ className, label, ...props }: DowncityFootnoteReferenceProps): react_jsx_runtime.JSX.Element; /** 渲染文章末尾的脚注区域。 */ declare function Footnotes({ children, className, title, ...props }: DowncityFootnotesProps): react_jsx_runtime.JSX.Element; /** 渲染单条脚注以及可选的正文返回链接。 */ declare function FootnoteItem({ back_href, back_label, children, className, ...props }: DowncityFootnoteItemProps): react_jsx_runtime.JSX.Element; /** 渲染带只读完成状态的任务列表项。 */ declare function TaskListItem({ checked, children, className, ...props }: DowncityTaskListItemProps): react_jsx_runtime.JSX.Element; declare const DefinitionList: React$1.ForwardRefExoticComponent, HTMLDListElement>, "ref"> & React$1.RefAttributes>; declare const DefinitionTerm: React$1.ForwardRefExoticComponent, HTMLElement>, "ref"> & React$1.RefAttributes>; declare const DefinitionDescription: React$1.ForwardRefExoticComponent, HTMLElement>, "ref"> & React$1.RefAttributes>; /** * 渲染全局 Workboard 游戏世界。 */ declare function Workboard(props: DowncityWorkboardProps): react_jsx_runtime.JSX.Element; /** * Workboard 游戏地图配置构建器。 * * 关键点(中文) * - 这里负责把公开 board 快照映射成游戏地图层可消费的配置。 * - 它不直接渲染,只输出 zones / actors / routes / POI / labels。 * - 当前渲染器和未来接入的 Pxlkit 都可以复用这层配置。 */ /** * 根据当前 board 构建完整游戏地图配置。 */ declare function buildWorkboardGameMapConfig(params: { board: DowncityWorkboardBoardSnapshot; activeZoneId: DowncityWorkboardZoneId; selectedAgentId?: string; }): DowncityWorkboardGameMapConfig; export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Anchor, Annotation, Avatar, AvatarFallback, AvatarImage, Badge, Blockquote, Button, ButtonGroup, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatComposer, ChatHistory, ChatInputEditor, ChatMessage, ChatMessageList, ChatPanel, Checkbox, CodeBlock, CollapsibleSettingGroup, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DefinitionDescription, DefinitionList, DefinitionTerm, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type DowncityAnnotationProps, type DowncityAnnotationTone, type DowncityButtonGroupOrientation, type DowncityButtonGroupProps, type DowncityButtonSize, type DowncityButtonVariant, type DowncityCardSize, type DowncityChatApprovalMode, type DowncityChatAttachment, type DowncityChatChangedFile, type DowncityChatChangedFileSummary, type DowncityChatMessage, type DowncityChatMessagePart, type DowncityChatMessagePartType, type DowncityChatMessageRenderProps, type DowncityChatMessageRole, type DowncityChatModelOption, type DowncityChatOperation, type DowncityChatPanelProps, type DowncityChatQuestion, type DowncityChatQuestionOption, type DowncityChatQueuedInput, DowncityChatRuntime, type DowncityChatRuntimeListener, type DowncityChatRuntimeOptions, type DowncityChatRuntimeSnapshot, type DowncityChatStatus, type DowncityChatSubmitInput, type DowncityChatThread, type DowncityCodeBlockProps, type DowncityCollapsibleSettingGroupProps, type DowncityCommandInputProps, type DowncityContextMenuContentProps, type DowncityContextMenuItemProps, type DowncityContextMenuItemVariant, type DowncityDataTableColumn, type DowncityDataTableProps, type DowncityDefinitionDescriptionProps, type DowncityDefinitionListProps, type DowncityDefinitionTermProps, type DowncityDropdownMenuItemVariant, type DowncityFileUploadProps, type DowncityFootnoteItemProps, type DowncityFootnoteReferenceProps, type DowncityFootnotesProps, type DowncityFormFieldProps, type DowncityImagePreviewProps, type DowncityInfoRowProps, type DowncityItemMediaVariant, type DowncityItemSize, type DowncityItemVariant, type DowncitySelectContentProps, type DowncitySelectItemProps, type DowncitySelectTriggerProps, type DowncitySelectTriggerSize, type DowncitySettingGroupProps, type DowncitySettingItemProps, type DowncitySettingListProps, type DowncitySettingSectionProps, type DowncitySettingsContainerProps, type DowncitySidebarLayoutProps, type DowncitySliderProps, type DowncitySpinnerProps, type DowncitySpinnerSize, type DowncityTaskListItemProps, type DowncityThemeContainerProps, type DowncityThemeMode, type DowncityThemeVariant, type DowncityToasterProps, type DowncityToggleGroupProps, type DowncityToggleGroupSize, type DowncityToggleGroupVariant, type DowncityTypographyBlockquoteProps, type DowncityTypographyHeadingProps, type DowncityTypographyInlineCodeProps, type DowncityTypographyListItemProps, type DowncityTypographyOrderedListProps, type DowncityTypographyParagraphProps, type DowncityTypographySpanProps, type DowncityTypographyUnorderedListProps, type DowncityWorkboardActivityItem, type DowncityWorkboardAgentItem, type DowncityWorkboardAgentSnapshot, type DowncityWorkboardBoardSnapshot, type DowncityWorkboardBoardSummary, type DowncityWorkboardGameActor, type DowncityWorkboardGameAreaLabel, type DowncityWorkboardGameAtlasProps, type DowncityWorkboardGameHudProps, type DowncityWorkboardGameInspectorProps, type DowncityWorkboardGameMapConfig, type DowncityWorkboardGamePointOfInterest, type DowncityWorkboardGameRoomProps, type DowncityWorkboardGameRoute, type DowncityWorkboardGameZone, type DowncityWorkboardHoverTagSetter, type DowncityWorkboardProps, type DowncityWorkboardSignalItem, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Emphasis, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FileUpload, FootnoteItem, FootnoteReference, Footnotes, FormField, H1, H2, H3, H4, H5, H6, HoverCard, HoverCardContent, HoverCardTrigger, Hr, ImagePreview, InfoRow, InlineCode, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, Kbd, KbdGroup, Label, Lead, ListItem, MenuEmpty, MenuGroup, MenuLabel, MenuSeparator, MenuSurface, Muted, OrderedList, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Paragraph, Popover, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollAreaContent, ScrollAreaScrollbar, ScrollAreaViewport, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingItem, SettingList, SettingSection, SettingsContainer, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SidebarLayout, Skeleton, Slider, Small, Spinner, Strong, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaskListItem, Textarea, type TextareaProps, ThemeContainer, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnorderedList, Workboard, badgeVariants, buildWorkboardGameMapConfig, buttonVariants, cn, create_chat_runtime, item_variants, session_jsonl_to_chat_messages, session_message_to_chat_message, session_part_to_chat_part, tabsListVariants, toggleVariants };