import type { Editor as TipTapEditor, Range } from "@tiptap/core"; import { type EditorProviderProps as TiptapEditorProviderProps } from "@tiptap/react"; export type { Editor as TipTapEditor, JSONContent } from "@tiptap/react"; import { type SuggestionOptions } from "@tiptap/suggestion"; import { type LucideIcon, type LucideProps } from "lucide-react"; import type { HTMLAttributes, ReactNode } from "react"; export interface SuggestionItem { title: string; description: string; icon: LucideIcon; searchTerms: string[]; command: (props: { editor: TipTapEditor; range: Range; }) => void; } export declare const defaultSlashSuggestions: SuggestionOptions["items"]; export type EditorProviderProps = TiptapEditorProviderProps & { className?: string; limit?: number; placeholder?: string; }; export declare const Editor: ({ className, extensions, limit, placeholder, ...props }: EditorProviderProps) => import("react/jsx-runtime").JSX.Element; type EditorButtonProps = { name: string; isActive: () => boolean; command: () => void; icon: LucideIcon | ((props: LucideProps) => ReactNode); hideName?: boolean; }; export type EditorClearFormattingProps = Pick; export declare const EditorClearFormatting: ({ hideName, }: EditorClearFormattingProps) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeTextProps = Pick; export declare const EditorNodeText: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeHeading1Props = Pick; export declare const EditorNodeHeading1: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeHeading2Props = Pick; export declare const EditorNodeHeading2: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeHeading3Props = Pick; export declare const EditorNodeHeading3: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeBulletListProps = Pick; export declare const EditorNodeBulletList: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeOrderedListProps = Pick; export declare const EditorNodeOrderedList: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeTaskListProps = Pick; export declare const EditorNodeTaskList: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeQuoteProps = Pick; export declare const EditorNodeQuote: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeCodeProps = Pick; export declare const EditorNodeCode: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorNodeTableProps = Pick; export declare const EditorNodeTable: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorSelectorProps = HTMLAttributes & { open?: boolean; onOpenChange?: (open: boolean) => void; title: string; }; export declare const EditorSelector: ({ open, onOpenChange, title, className, children, ...props }: EditorSelectorProps) => import("react/jsx-runtime").JSX.Element | null; export type EditorFormatBoldProps = Pick; export declare const EditorFormatBold: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorFormatItalicProps = Pick; export declare const EditorFormatItalic: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorFormatStrikeProps = Pick; export declare const EditorFormatStrike: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorFormatCodeProps = Pick; export declare const EditorFormatCode: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorFormatSubscriptProps = Pick; export declare const EditorFormatSubscript: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorFormatSuperscriptProps = Pick; export declare const EditorFormatSuperscript: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorFormatUnderlineProps = Pick; export declare const EditorFormatUnderline: ({ hideName, }: Pick) => import("react/jsx-runtime").JSX.Element | null; export type EditorLinkSelectorProps = { open?: boolean; onOpenChange?: (open: boolean) => void; }; export declare const EditorLinkSelector: ({ open, onOpenChange, }: EditorLinkSelectorProps) => import("react/jsx-runtime").JSX.Element | null; export type EditorTableMenuProps = { children: ReactNode; }; export declare const EditorTableMenu: ({ children }: EditorTableMenuProps) => import("react/jsx-runtime").JSX.Element | null; export type EditorTableGlobalMenuProps = { children: ReactNode; }; export declare const EditorTableGlobalMenu: ({ children, }: EditorTableGlobalMenuProps) => import("react/jsx-runtime").JSX.Element; export type EditorTableColumnMenuProps = { children: ReactNode; }; export declare const EditorTableColumnMenu: ({ children, }: EditorTableColumnMenuProps) => import("react/jsx-runtime").JSX.Element; export type EditorTableRowMenuProps = { children: ReactNode; }; export declare const EditorTableRowMenu: ({ children }: EditorTableRowMenuProps) => import("react/jsx-runtime").JSX.Element; export declare const EditorTableColumnBefore: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableColumnAfter: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableRowBefore: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableRowAfter: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableColumnDelete: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableRowDelete: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableHeaderColumnToggle: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableHeaderRowToggle: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableDelete: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableMergeCells: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableSplitCell: () => import("react/jsx-runtime").JSX.Element | null; export declare const EditorTableFix: () => import("react/jsx-runtime").JSX.Element | null; export type EditorCharacterCountProps = { children: ReactNode; className?: string; }; export declare const EditorCharacterCount: { Characters({ children, className }: EditorCharacterCountProps): import("react/jsx-runtime").JSX.Element | null; Words({ children, className }: EditorCharacterCountProps): import("react/jsx-runtime").JSX.Element | null; }; //# sourceMappingURL=editor.d.ts.map