import type { EngineAdapter, OutlineItem } from "@auto-hwp/editor-core"; export interface OutlinePanelProps { /** The document outline (engine headings). When empty, the panel shows a PAGE THUMBNAIL rail (a live, * PDF-viewer-style preview of each page — issue 046 §함정: 빈 패널 금지) so a document with no detected * heading still gets a working, visual page navigator. */ items: OutlineItem[]; /** Total page count — drives the thumbnail rail / page-list fallback and bounds the current-page highlight. */ pageCount: number; /** The page currently at the top of the viewport (0-based) — a SCROLL-POSITION calc from the workspace, * independent of the 037 virtualization visible set. Highlights the outline item / thumbnail that contains it. */ currentPage: number; /** Collapsed = a thin rail with only the expand affordance (state remembered by the host, issue 046). */ collapsed: boolean; /** Toggle collapsed/expanded (the host persists it to localStorage). */ onToggleCollapse: () => void; /** Jump to a page (0-based). The host wires this to its EXISTING scroll source (no new arithmetic — * issue 046: 035 줌과 정합) so the outline and the page view share one scroll path. */ onJump: (page: number) => void; /** The engine adapter — the thumbnail rail pulls each page's own-render SVG via `adapter.pageSvg(p)` to * build a live preview. OPTIONAL: with no adapter (or a rendererless backend) the page mode degrades to a * plain page-number list, so this stays a working navigator either way. The SVG is ALWAYS passed through * `sanitizeSvg` and handed to an `` (raster) — it is NEVER injected as markup (R7). */ adapter?: EngineAdapter; /** Bumped on every layout invalidation (post-edit). Invalidates each cached thumbnail so an edit re-rasters * the affected pages (unchanged pages are skipped by a raw-string compare, mirroring 034). */ refreshToken?: number; } export declare function OutlinePanel(props: OutlinePanelProps): import("react").JSX.Element; //# sourceMappingURL=OutlinePanel.d.ts.map