import { IWelcomeMessage } from '../WelcomeMessage';
import { INewFooter } from '../NewFooter';
import { HeaderProps } from '../Header';
import { Nullish } from '../../types';

export interface INewChat extends HeaderProps, IWelcomeMessage, Omit<INewFooter, 'scrollableAreaRef'>, React.PropsWithChildren<unknown> {
    /**
     * If true, shows a loading indicator.
     */
    isLoading: boolean;
    /**
     * If true, shows audio interface controls.
     */
    audioInterface?: boolean;
    /**
     * If true, the user is using a mobile device.
     */
    isMobile?: boolean;
    /**
     * A unix timestamp indicating the start of the conversation.
     */
    startTime?: Nullish<number>;
    /**
     * A callback that is executed when the chat widget is minimized.
     */
    onMinimize?: React.MouseEventHandler<HTMLButtonElement>;
    /**
     * A callback that is executed when the conversation ends.
     */
    onEnd?: React.MouseEventHandler<HTMLButtonElement>;
    hasEnded: boolean;
    /**
     * A callback to start a new conversation.
     */
    onStart?: (() => Promise<void>) | undefined;
}
export declare const NewChat: React.FC<INewChat>;
//# sourceMappingURL=index.d.ts.map