import { KFModelState } from '@/pages/add-knowledge/components/knowledge-file/model'; import { ChatModelState } from '@/pages/chat/model'; declare module 'lodash'; function useSelector( selector: (state: TState) => TSelected, equalityFn?: (left: TSelected, right: TSelected) => boolean, ): TSelected; export interface RootState { chatModel: ChatModelState; kFModel: KFModelState; } declare global { type Nullable = T | null; } declare module 'umi' { export { useSelector }; }