import { JsxNode } from '@arcgis/lumina';
import { ArcgisArcadeEditor } from '../components/arcgis-arcade-editor/customElement.js';
import { IconName } from '../components/arcgis-arcade-coding-assistant/types';
type IBaseCustomPanel = {
    /** Unique ID */
    id: string;
    name: string;
    location: "sidebar";
    renderer: ({ closePanel, insertText, closed, editorRef, }: {
        closePanel: (e: Event) => void;
        insertText: (text: string) => void;
        closed: boolean;
        editorRef: ArcgisArcadeEditor;
    }) => JsxNode;
};
type ICustomSidePanel = IBaseCustomPanel & {
    /** Calcite icon */
    icon: IconName;
    /** Optional description */
    description?: string;
    /** Optional flag to indicate that the user is providing custom flow items
     * @deprecated - this is not used in the codebase and will be removed in the future.
     */
    useFlows?: boolean;
    /** Optional flag to tell the editor if the panel is enabled, defaults to true */
    enabled?: boolean;
    /** location */
    location: "sidebar";
};
export type ICustomPanel = ICustomSidePanel;
export {};
