import type { Editor } from "@tiptap/core"; import type { Snippet } from "svelte"; import { type OutlineHeading } from "@pixerate/editor"; interface Props { editor?: Editor | null; /** Heading shown above the list. Pass `null` to hide it. */ title?: string | null; /** Text shown when the document has no headings. */ emptyText?: string; /** Deepest heading level listed. Defaults to 6. */ maxLevel?: number; /** Whether clicking an entry focuses the editor. Defaults to `true`. */ focusOnNavigate?: boolean; class?: string; itemClass?: string; activeItemClass?: string; /** Called after navigating to a heading. */ onNavigate?: (heading: OutlineHeading) => void; /** Custom empty state, rendered instead of `emptyText`. */ empty?: Snippet; } declare const OutlinePanel: import("svelte").Component; type OutlinePanel = ReturnType; export default OutlinePanel;