import type { ContentModelDocument, FormatContentModelOptions, IEditor } from 'roosterjs-content-model-types'; import type { PickerDirection, PickerHandler } from './PickerHandler'; import type { PickerHelper } from './PickerHelper'; /** * @internal */ export declare class PickerHelperImpl implements PickerHelper { readonly editor: IEditor; readonly handler: PickerHandler; private triggerCharacter; direction: PickerDirection | null; constructor(editor: IEditor, handler: PickerHandler, triggerCharacter: string); /** * Replace the query string with a given Content Model. * This is used for commit a change from picker and insert the committed content into editor. * @param model The Content Model to insert * @param options Options for formatting content model * @param canUndoByBackspace Whether this change can be undone using Backspace key */ replaceQueryString(model: ContentModelDocument, options?: FormatContentModelOptions, canUndoByBackspace?: boolean): void; /** * Notify Picker Plugin that picker is closed from the handler code, so picker plugin can quit the suggesting state */ closePicker(): void; }