import { MessageProps } from '@chatui/core'; import { MessageWithoutId } from '../model/message'; export interface IUserMessage extends MessageWithoutId { } export default function useNexusMessages(initialState?: MessageWithoutId[]): { messages: MessageProps[]; prependMsgs: (msgs: MessageProps[]) => void; appendMsg: (msg: Omit & { _id?: import('@chatui/core/lib/components/Message').MessageId; }) => void; updateMsg: (id: import('@chatui/core/lib/components/Message').MessageId, msg: Omit & { _id?: import('@chatui/core/lib/components/Message').MessageId; }) => void; deleteMsg: (id: import('@chatui/core/lib/components/Message').MessageId) => void; resetList: (list?: any) => void; appendSystemLoading: (payload: MessageProps) => void; closeSystemLoading: () => void; };