amis-rpc-design/node_modules/rc-mentions/es/MentionsContext.d.ts
2023-10-07 19:42:30 +08:00

13 lines
477 B
TypeScript

import * as React from 'react';
import type { OptionProps } from './Option';
export interface MentionsContextProps {
notFoundContent: React.ReactNode;
activeIndex: number;
setActiveIndex: (index: number) => void;
selectOption: (option: OptionProps) => void;
onFocus: React.FocusEventHandler<HTMLElement>;
onBlur: React.FocusEventHandler<HTMLElement>;
}
declare const MentionsContext: React.Context<MentionsContextProps>;
export default MentionsContext;