import * as React from "react"; import { BeeGwtService, BoxedExpression, DmnDataType, ExpressionChangedArgs, Normalized, PmmlDocument } from "./api"; import { BoxedExpressionEditorProps, OnRequestFeelIdentifiers } from "./BoxedExpressionEditor"; import "./BoxedExpressionEditorContext.css"; export interface BoxedExpressionEditorContextType { beeGwtService?: BeeGwtService; editorRef: React.RefObject; scrollableParentRef: React.RefObject; expressionHolderId: string; pmmlDocuments?: PmmlDocument[]; dataTypes: DmnDataType[]; isReadOnly?: boolean; evaluationHitsCountById?: Map; currentlyOpenContextMenu: string | undefined; setCurrentlyOpenContextMenu: React.Dispatch>; onRequestFeelIdentifiers?: OnRequestFeelIdentifiers; widthsById: Map; hideDmn14BoxedExpressions?: boolean; } export interface BoxedExpressionEditorDispatchContextType { setExpression: OnExpressionChange; setWidthsById: (mutation: ({ newMap }: { newMap: Map; }) => void) => void; } export declare const BoxedExpressionEditorContext: React.Context; export declare const BoxedExpressionEditorDispatchContext: React.Context; export declare function useBoxedExpressionEditor(): BoxedExpressionEditorContextType; export declare function useBoxedExpressionEditorDispatch(): BoxedExpressionEditorDispatchContextType; export declare function BoxedExpressionEditorContextProvider({ onExpressionChange, onWidthsChange, dataTypes, isReadOnly, expressionHolderId, beeGwtService, children, pmmlDocuments, evaluationHitsCountById, scrollableParentRef, onRequestFeelIdentifiers, widthsById, hideDmn14BoxedExpressions, }: React.PropsWithChildren): JSX.Element; export type OnSetExpression = (args: { getNewExpression: (prev: Normalized | undefined) => Normalized | undefined; expressionChangedArgs: ExpressionChangedArgs; }) => void; export type OnExpressionChange = (args: { setExpressionAction: React.SetStateAction | undefined>; expressionChangedArgs: ExpressionChangedArgs; }) => void; export declare function NestedExpressionDispatchContextProvider({ onSetExpression, children, }: React.PropsWithChildren<{ onSetExpression: OnSetExpression; }>): JSX.Element; //# sourceMappingURL=BoxedExpressionEditorContext.d.ts.map