UNPKG

@atlaskit/editor-plugin-type-ahead

Version:

Type-ahead plugin for @atlaskit/editor-core

9 lines (8 loc) 743 B
import { ACTION } from '@atlaskit/editor-common/analytics'; import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { TypeAheadPlugin } from '../typeAheadPluginType'; import type { TypeAheadInputMethod } from '../types'; export type CloseActionType = ACTION.INSERTED | ACTION.CANCELLED | ACTION.VIEW_MORE; export type InputMethodType = INPUT_METHOD.KEYBOARD | INPUT_METHOD.MOUSE; export declare const fireTypeAheadClosedAnalyticsEvent: (api: ExtractInjectionAPI<TypeAheadPlugin> | undefined, closeAction: CloseActionType | null, hasQuery: boolean, inputMethod: InputMethodType | null, invocationMethod?: TypeAheadInputMethod | null) => void;