///
/*!
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project.
*/
import type { Step } from '@datashaper/workflow';
import type { IDropdownOption } from '@fluentui/react';
import type { StepChangeFunction } from '../../types.js';
export type DropdownChangeHandler = (event: React.FormEvent, option?: IDropdownOption, index?: number) => void;
/**
* Creates a callback handler for changing the step based on a dropdown value.
* This only handles basic cases where the dropdown option key can be set on the
* step using an object path.
*/
export declare function useDropdownChangeHandler(step: Step, updateFn: (step: Step, optionKey: string | number | undefined) => void, onChange?: StepChangeFunction): DropdownChangeHandler;