import { PromptInputProps } from '../interfaces';
import { CaretController } from './caret-controller';
import { MenuItemsHandlers, MenuItemsState } from './menu-state';
interface TriggerSpaceHandlerProps {
    menuItemsState: MenuItemsState;
    menuItemsHandlers: MenuItemsHandlers;
    getMenuStatusType?: () => PromptInputProps.MenuDefinition['statusType'];
    closeMenu: () => void;
    caretController?: CaretController;
    editableElement?: HTMLElement;
}
/** Handles space key press when a trigger menu is open. Returns true if handled. */
export declare function handleSpaceInOpenMenu(event: React.KeyboardEvent, props: TriggerSpaceHandlerProps): boolean;
/** Handles Delete at the end of a trigger element, removing the leading space from the next text node. */
export declare function handleDeleteAfterTrigger(event: React.KeyboardEvent<HTMLDivElement>, editableElement: HTMLDivElement): boolean;
/** Detects structural trigger transitions between old and new token arrays. Returns the caret position, or 0 if none. */
export declare function detectTriggerTransition(oldTokens: readonly PromptInputProps.InputToken[] | null | undefined, newTokens: readonly PromptInputProps.InputToken[] | null | undefined): number;
export {};
//# sourceMappingURL=trigger-utils.d.ts.map