import ' rollup-plugin-inject-process-env';
import { FC } from "react";
import { ChatServerButton, ChatServerList } from "../../xapp/ChatServerMessage";
import "./List.scss";
import { OpenUrlCallback } from "../../hooks/useOpenUrlCallback";
export interface ListProps {
    readonly list: ChatServerList;
    /**
     * A callback that is called when a button on the list item was clicked.
     */
    onButtonClick(button: ChatServerButton): void;
    /**
     * Returns the text of the list item that was clicked and optional token.
     *
     * @param text - Text of the list item that was clicked.
     * @param token - Optional, token that was passed with the list item.
     */
    onExecute(text: string, token?: string): void;
    /**
     * Opens the URL in the browser.
     */
    onOpenUrl: OpenUrlCallback;
}
declare const List: FC<ListProps>;
export default List;
