/**
 * [[include:./chat/README.md]]
 * @module Chat
 * @group Chat
 */
import { ComputedRef } from "vue";
export interface Message {
    timestamp: string | number;
    author?: string;
    text: string;
}
export type MessageMap = Record<string, Message>;
export declare function useChat(current?: string): {
    send: (message: string) => void;
    addChat: (title: string) => void;
    currentChat: import("vue").Ref<string>;
    chats: ComputedRef<Record<string, Record<string, string>>>;
    messages: ComputedRef<MessageMap>;
    sorted: ComputedRef<Message[]>;
};
