/** @packageDocumentation
 * @module Toolbar
 */
import type * as React from "react";
import type { ActionButton, CustomButtonDefinition, GroupButton } from "@itwin/appui-abstract";
import type { BadgeKind } from "@itwin/core-react/internal";
import type { AnyItemDef } from "../shared/AnyItemDef.js";
import { CommandItemDef } from "../shared/CommandItemDef.js";
import { CustomItemDef } from "../shared/CustomItemDef.js";
import { ToolItemDef } from "../shared/ToolItemDef.js";
import { GroupItemDef } from "./GroupItem.js";
import type { ToolbarActionItem, ToolbarCustomItem, ToolbarGroupItem, ToolbarItem } from "./ToolbarItem.js";
import type { CommonToolbarItemWithBadgeKind } from "@itwin/components-react/internal";
/** Helper functions for defining a Toolbar items used in `Toolbar`, `ToolbarComposer` and `UiItemsProvider`.
 * @public
 * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities} instead.
 */
export declare class ToolbarHelper {
    /** Construct ToolbarCustomItem definitions given a CustomItemDef.
     * @deprecated in 4.15.0. Use `ToolbarItemUtilities.createCustomItem` instead.
     */
    static createCustomDefinitionToolbarItem(itemPriority: number, itemDef: CustomItemDef, overrides?: Partial<CustomButtonDefinition & {
        badgeKind?: BadgeKind;
    }>): ToolbarCustomItem;
    /** Construct ToolbarActionItem and ToolbarGroupItem definitions given an array of ItemDefs.
     * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities} instead.
     */
    static constructChildToolbarItems(itemDefs: AnyItemDef[]): Array<ToolbarActionItem | ToolbarGroupItem>;
    private static getStringOrConditionalString;
    /** @deprecated in 4.15.0. Use {@link @itwin/core-react#IconHelper} instead. */
    static getIconReactNode(item: ActionButton | GroupButton): React.ReactNode;
    /** Helper method to creates a generic toolbar item entry.
     * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities} instead.
     */
    static createToolbarItemFromItemDef(itemPriority: number, itemDef: AnyItemDef, overrides?: Partial<CommonToolbarItemWithBadgeKind>): ToolbarItem;
    /** Helper method to creates a generic toolbar item entry list.
     * @deprecated in 4.15.0. Use {@link ToolbarItemUtilities} instead.
     */
    static createToolbarItemsFromItemDefs(itemDefs: AnyItemDef[], startingItemPriority?: number, overrides?: Partial<CommonToolbarItemWithBadgeKind>): ToolbarItem[];
}
/** @internal */
export declare function itemDefToToolbarActionItem(itemDef: ToolItemDef | CommandItemDef, overrides?: Partial<ToolbarActionItem>): ToolbarActionItem;
/** @internal */
export declare function itemDefToToolbarGroupItem(itemDef: GroupItemDef, overrides?: Partial<ToolbarGroupItem>): ToolbarGroupItem;
//# sourceMappingURL=ToolbarHelper.d.ts.map