import type { Anchor, DocContext, Intent, IntentCard, OnAiRequest } from "../types"; export interface ChatPanelProps { /** Whether editing is possible (a document is open + editable). */ canEdit: boolean; /** Marked anchor chips (issue #009) that ride along with the next prompt. */ anchors: Anchor[]; /** Remove the i-th anchor chip. */ onRemoveAnchor: (i: number) => void; /** Clear ALL anchor chips ("모두 지우기"). Optional — when omitted the button is hidden. */ onClearAnchors?: () => void; /** Label for the additive/toggle modifier key ("⌘"/"Ctrl") in the hint tooltip. Defaults to a * platform-detected label. */ modLabel?: string; /** The host AI bridge (R6). The package never calls an LLM — this returns the Intents to preview. */ onAiRequest: OnAiRequest; /** Read-only doc context passed to `onAiRequest`. */ docContext: DocContext; /** Apply the previewed Intents (commit). Resolves to how many were applied. */ onApply: (intents: Intent[]) => Promise; /** Consume (clear) the marked anchors once a prompt has ridden them along. */ onConsumeAnchors: () => void; /** Jump the page view to `page` (preview card link). Optional. */ onJumpToPage?: (page: number) => void; /** 072 — 카드 "위치 보기": 대상 (section, block) 블록으로 스크롤+플래시. 미지정 시 페이지 점프 폴백. */ onRevealTarget?: (section: number, block: number) => void; /** Show the honest "mock/demo" badge (host passes true when `onAiRequest` returns canned Intents). */ isMock?: boolean; /** OPTIONAL informational banner shown at the top of the panel — e.g. a static demo explaining that * AI editing needs a locally-run host (BYOK). Plain text; rendered like the mock badge. */ aiNotice?: string; /** A monotonically-bumped token; when it CHANGES the composer is focused + scrolled into view. The * floating toolbar's "AI에게 전달" bumps it (issue 028) — the marked selection is already the anchor * chip, so this just brings the user to the composer. No new prompt logic. */ focusToken?: number; /** Whether the host pane is visible. A hidden pane defers focus until the host reveals it. */ active?: boolean; /** OPTIONAL async card builder (issue 051): maps the proposed Intents → enriched preview cards — * the host wires `EditController.previewCards` so a DeleteBlock card carries the target block's * ORIGINAL text (`detail`) + the `destructive` flag. Omitted → the pure `describeIntent` mapping * (backward compatible). Applying is ALWAYS behind the explicit 적용 button either way. */ previewCards?: (intents: Intent[]) => Promise; /** PERSISTENT per-card 되돌리기 (Feature C): revert the TOP-of-stack applied batch (host wires * `core.session.undo()`), resolving `true` when a batch was reverted. Omitted → no per-card revert * button (backward compatible; the global ⌘Z / toolbar ↶ still exist). v1 is honest top-of-stack only: * the button is shown on every APPLIED turn but ENABLED only for the batch currently on top; earlier * batches are disabled with a tooltip until the ones above them are reverted (never silently reverts the * wrong batch). */ onRevert?: () => Promise; /** 고스트 프리뷰(이슈 3) — hand the host the Intents to draw as a translucent ghost on the DOCUMENT * (card hover, or the per-turn 미리 보기 toggle); `null` clears it. The host resolves each Intent's * address to on-page geometry and draws the overlay — the chat never touches the canvas. Omitted → * no preview affordance at all (backward compatible; 위치 보기 stays). */ onPreviewIntents?: (intents: Intent[] | null) => void; /** The LIVE undo-stack depth getter (Feature C): paired with `onRevert`. The panel records each applied * turn's depth-after-apply and compares it to this live value to know if that batch is still top-of- * stack. A getter (not a value) so it reflects the session even across a global undo/redo. */ undoDepth?: () => number; } export declare function ChatPanel(props: ChatPanelProps): import("react").JSX.Element; //# sourceMappingURL=ChatPanel.d.ts.map