import type { ReactNode } from 'react'; import type { Editor as TiptapEditor } from '@tiptap/core'; import type { AIAction, TestIdProp } from '@pega/cosmos-react-core'; import type { Features } from '../../RichTextEditor/Toolbar/Toolbar.types'; import type { CustomAction, LinkCustomSourceConfig, ImageCustomSourceConfig } from '../Editor.types'; import type { elements } from './Toolbar.test-ids'; export interface ToolbarProps extends TestIdProp { features: Features[]; sticky?: boolean; editor: TiptapEditor; customActions?: CustomAction[]; imageInsertionMode: 'file' | 'url' | 'all'; onRewriteClick?: (originalText: string, rewriteAction: AIAction, additionalInstructions: string, onSuccess: (rewrittenText: string) => void) => void; linkCustomSource?: LinkCustomSourceConfig; imageCustomSource?: ImageCustomSourceConfig; renderSuggestionEditor?: (props: { defaultValue?: string; disabled: boolean; readOnly: boolean; onGetContent: (getContent: () => string) => void; onContentChange: (hasContent: boolean) => void; }) => ReactNode; sourceMode?: boolean; onSourceModeToggle?: (isSourceMode: boolean) => void; } declare const _default: (({ testId, features, sticky, editor, customActions, imageInsertionMode, onRewriteClick, linkCustomSource, imageCustomSource, renderSuggestionEditor, sourceMode, onSourceModeToggle, ...restProps }: ToolbarProps) => import("react/jsx-runtime").JSX.Element) & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord; }; export default _default; //# sourceMappingURL=Toolbar.d.ts.map