import { AbstractType, InjectFlags, InjectionToken, Type } from '@viewfly/core'; import { Textbus } from '../textbus'; import { Shortcut } from './types'; import { Component } from './component'; /** * 组件 setup 方法内获取编辑器 IoC 容器的勾子 */ export declare function useContext(): Textbus; export declare function useContext(token: Type | AbstractType | InjectionToken, notFoundValue?: T, flags?: InjectFlags): T; /** * 组件 setup 方法内获取组件实例的勾子 */ export declare function useSelf(): T; /** * 组件注册动态快捷键的勾子 * @param config */ export declare function useDynamicShortcut(config: Shortcut): void;