import type { PageBox } from "../coords"; /** Text alignment the toolbar can apply — maps straight onto `SetCellRangeFmt.align` (INTENT-SCHEMA §6.8, * via editor-core `formatCellRange`). No new op is introduced (issue 028: surface redesign only). */ export type ToolbarAlign = "left" | "center" | "right" | "justify"; export interface FloatingToolbarProps { /** The selection MARK boxes on THIS page (own-render PAGE px). Multi-selection → union bbox anchors it. */ marks: readonly PageBox[]; /** rendered px / viewBox px for the page (the SINGLE conversion from HwpPageView — never re-derived). */ scale: number; /** The positioning container's client-px width (the page sheet width) for the horizontal clamp. */ viewportWidth: number; /** The selection kind, only used for the mark-scope label/tooltips. */ kind: string; /** When set, the FORMAT controls are disabled and show this reason as their tooltip (issue 027 rule: * 미지원 조합은 조용한 무시 금지 — 비활성+사유). `undefined` → format controls are enabled. */ formatDisabledReason?: string; /** Optional 서체 catalog (family names). Each option previews in its own family (best-effort). */ fonts?: readonly string[]; /** Whether the "AI에게 전달" entry is available (a document is open + editable). */ aiEnabled: boolean; onBold: () => void; onItalic: () => void; onSize: (pt: number) => void; onFont: (family: string) => void; onColor: (hex: string) => void; onShade: (hex: string | null) => void; onAlign: (align: ToolbarAlign) => void; /** Confirm the current selection as an anchor chip + focus the chat composer (issue 028 — the vibe-edit * entry point). Reuses the existing chip/focus path; NO new prompt logic. */ onSendToAi: () => void; } export declare function FloatingToolbar(props: FloatingToolbarProps): import("react").JSX.Element | null; //# sourceMappingURL=FloatingToolbar.d.ts.map