/** @packageDocumentation
 * @module Toolbar
 */
import * as React from "react";
import type { ToolbarItem } from "../../toolbar/ToolbarItem.js";
import type { ToolbarProps as OldToolbarProps } from "../Toolbar.js";
/** These exist for backwards compatibility only. */
type ToolbarInternalProps = Pick<OldToolbarProps, "onItemExecuted">;
interface ToolbarProps extends ToolbarInternalProps {
    /** Definitions for items of the toolbar. */
    items: ToolbarItem[];
    /** Describes direction to which the panels are expanded. Orientation of the toolbar is determined based on this prop. Defaults to `bottom`.  */
    expandsTo?: "top" | "bottom" | "left" | "right";
    /** Describes how panels are aligned. Defaults to `start`. */
    panelAlignment?: "start" | "end";
}
/** @internal */
export declare function Toolbar({ items, expandsTo, panelAlignment, onItemExecuted, }: ToolbarProps): React.JSX.Element;
interface ToolbarContextProps extends Pick<Required<ToolbarProps>, "expandsTo" | "panelAlignment">, Pick<ToolbarProps, "onItemExecuted"> {
    popoverOpen: boolean;
    setPopoverOpen: React.Dispatch<React.SetStateAction<boolean>>;
    orientation: "horizontal" | "vertical";
}
/** @internal */
export declare const ToolbarContext: React.Context<ToolbarContextProps | undefined>;
/** @internal */
export declare const ToolbarItemContext: React.Context<{
    renderSeparator: boolean;
} | undefined>;
export {};
//# sourceMappingURL=Toolbar.d.ts.map