/// <reference types="react" />
import type { ActionFormSettings, WritebackAction } from "../../../../../metabase-types/api";
import type { ActionCreatorUIProps } from "../types";
import type { EditableActionParams, EditorBodyProps } from "./types";
export type ActionContextType = {
    action: Partial<WritebackAction>;
    formSettings: ActionFormSettings;
    canSave: boolean;
    isNew: boolean;
    isDirty: boolean;
    ui: ActionCreatorUIProps;
    handleActionChange: (action: EditableActionParams) => void;
    handleFormSettingsChange: (formSettings: ActionFormSettings) => void;
    renderEditorBody: (props: EditorBodyProps) => React.ReactNode;
};
export declare const ActionContext: import("react").Context<ActionContextType>;
export declare const useActionContext: () => ActionContextType;
