import { type PropsWithChildren } from "react"; import { type CatalogItem, type GenAIObjectType, type IDashboard, type IInsight } from "@gooddata/sdk-model"; export type ConfigContext = { allowNativeLinks?: boolean; canManage?: boolean; canAnalyze?: boolean; canFullControl?: boolean; linkHandler?: (linkClickEvent: LinkHandlerEvent) => string | undefined; catalogItems?: CatalogItem[]; }; /** * @public */ export type LinkHandlerEvent = { type: "setting" | GenAIObjectType; id: string; workspaceId: string; newTab: boolean; itemUrl: string; preventDefault: () => void; section?: "ai"; dashboard?: IDashboard; insights?: IInsight[]; dashboardStatus?: "saved" | "draft"; visualization?: IInsight; visualizationStatus?: "saved" | "draft"; action: "copy" | "open"; }; /** * Mode of the Gen AI assistant. * @public */ export type GenAIAssistantMode = "docked" | "fullscreen"; /** * Display mode of the Gen AI assistant. * @public */ export type GenAIAssistantDisplayMode = "inline" | "modal"; export declare function ConfigProvider({ children, allowNativeLinks, linkHandler, catalogItems, canManage, canAnalyze, canFullControl, }: PropsWithChildren): import("react/jsx-runtime").JSX.Element; export declare const useConfig: () => ConfigContext; //# sourceMappingURL=ConfigContext.d.ts.map