import { Conversation, COORDINATOR_FUNCTIONS, QueryResult } from "delphi-node-sdk";
import { ChatAttachment } from "../types";
type Props = {
    initialMessage?: string;
    delphiApiUrl?: string;
    credentials: {
        clientId: string;
        apiKey?: string;
        userId?: string;
        email?: string;
        jwt?: string;
        publicToken?: string;
    };
    colors?: {
        primary?: string;
        secondary?: string;
    };
    conversationId?: string;
};
export default function useMessages(props: Props): {
    messagesToDisplay: {
        text: string | React.ReactNode;
        author: Conversation["author"];
        function?: COORDINATOR_FUNCTIONS | undefined;
        attachments?: ChatAttachment[] | undefined;
    }[];
    handleMessage: (message: string) => Promise<void>;
    data: Record<string, QueryResult> | undefined;
    loading: boolean;
    isShared: boolean | undefined;
    updateSavedConversation: ({ conversation, conversationId, shared, }: {
        conversation?: Conversation[] | undefined;
        shared?: boolean | undefined;
        conversationId: string;
    }) => Promise<void>;
    conversationId: string | undefined;
};
export {};
