/** * [WHO]: Public exports from this file (see implementation below). * [FROM]: See the import block immediately after this header. * [TO]: sparkdesign package consumers; output of CLI `add` when applicable. * [HERE]: registry/chat/browser-action-part.tsx — Spark Design source; keep aligned with the main library. * * [PROTOCOL]: * 1. Keep this P3 header in sync when the public contract changes. * 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change. * 3. Follow design tokens and explicit type exports. */ import { type ReactNode } from 'react'; export type BrowserActionStatus = 'normal' | 'failed' | 'skipped'; export interface BrowserActionPartProps { description?: string; content?: string; status?: BrowserActionStatus; onRun?: () => void; onSkip?: () => void; onViewDetail?: () => void; onAskEveryTimeChange?: (value: string) => void; className?: string; /** 供 Select 下拉浮层继承布局风格(如 dense),不传则从 document 读取 */ dataStyle?: string; /** 供 Select 下拉浮层继承颜色主题,不传则从 document 读取 */ dataTheme?: string; normalIcon?: ReactNode; failedIcon?: ReactNode; skippedIcon?: ReactNode; } export declare function BrowserActionPart({ description, content, status, onRun, onSkip, onViewDetail, onAskEveryTimeChange, className, dataStyle, dataTheme, normalIcon, failedIcon, skippedIcon, }: BrowserActionPartProps): import("react/jsx-runtime").JSX.Element; export declare namespace BrowserActionPart { var displayName: string; } export declare const BrowserActionCard: typeof BrowserActionPart; export type BrowserActionCardProps = BrowserActionPartProps;