/** * @fileoverview Toolbar with Ask AI, Suggest, Copy, Share, Highlight, Favorite, Open-in-new-tab, and Close buttons shown at the top of the article extract panel. * * Each button has a shadcn/Radix tooltip that appears on hover (zero delay) showing the * action label and its keyboard shortcut. The shortcut key definitions are exported as * {@link ARTICLE_TOOLBAR_SHORTCUTS} so the panel can wire up the matching key handlers. */ import React from 'react'; /** * Keyboard shortcut definitions for the article toolbar actions. `alt` means the * shortcut requires the Alt/Option modifier; `close` uses a bare Escape key. * Shared between the tooltip hints here and the key handler in the panel so the * displayed shortcut and the actual binding never drift apart. */ export declare const ARTICLE_TOOLBAR_SHORTCUTS: { readonly ask: { readonly alt: true; readonly key: "a"; }; readonly suggest: { readonly alt: true; readonly key: "s"; }; readonly copy: { readonly alt: true; readonly key: "c"; }; readonly highlight: { readonly alt: true; readonly key: "h"; }; readonly favorite: { readonly alt: true; readonly key: "f"; }; readonly open: { readonly alt: true; readonly key: "o"; }; readonly zoomOut: { readonly alt: true; readonly key: "-"; }; readonly zoomReset: { readonly alt: true; readonly key: "0"; }; readonly zoomIn: { readonly alt: true; readonly key: "="; }; readonly close: { readonly alt: false; readonly key: "Escape"; }; }; export type ArticleToolbarAction = keyof typeof ARTICLE_TOOLBAR_SHORTCUTS; /** * Render a shortcut definition as a short, platform-aware label * (e.g. "⌥A" on macOS, "Alt+A" elsewhere, "Esc" for the close action). */ export declare function formatToolbarShortcut(action: ArticleToolbarAction): string; interface ArticleActionButtonsProps { isLoadingAI: boolean; isLoadingFollowups: boolean; isLoadingFavorite: boolean; isFavorited: boolean; isHighlightMode: boolean; articleUrl?: string; fontScale?: number; onAskClick: () => void; onSuggestClick: () => void; onCopyClick: () => void; onShareClick: () => void; onFavoriteClick: () => void; onHighlightToggle: () => void; onZoomIn?: () => void; onZoomOut?: () => void; onZoomReset?: () => void; onClose: () => void; } declare const ArticleActionButtons: React.FC; export default ArticleActionButtons;