import { default as React, Dispatch, SetStateAction } from 'react'; import { Session } from '@glodon-aiot/bot-client-sdk'; import { IKnowledge, IApplication, ISessionParams } from '@glodon-aiot/apis'; export interface SessionListProps { appId?: string; application?: IApplication; networkStatus: boolean; currentSession?: Session | null; setCurrentSession?: Dispatch>; reload?: VoidFunction; checkKnowledges?: IKnowledge[]; setCheckKnowledges?: Dispatch>; isShowHeader?: boolean; afterSessionClick?: (session: Session) => void; sessionId?: string; } export interface SessionListRef { create: (param: ISessionParams & { knowledges?: IKnowledge[]; }) => Promise | any; list: () => Promise; } declare const SessionList: React.ForwardRefExoticComponent>; export default SessionList;