/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Toolbar
 */
/** Used to specify the usage of the toolbar which determine the toolbar position.
 * @public
 */
export var ToolbarUsage;
(function (ToolbarUsage) {
    /** Contains tools to Create Update and Delete content - in AppUI this is in top left of content area. */
    ToolbarUsage[ToolbarUsage["ContentManipulation"] = 0] = "ContentManipulation";
    /** Manipulate view/camera - in AppUI this is in top right of content area. */
    ToolbarUsage[ToolbarUsage["ViewNavigation"] = 1] = "ViewNavigation";
})(ToolbarUsage || (ToolbarUsage = {}));
/** Used to specify the orientation of the toolbar.
 * @public
 */
export var ToolbarOrientation;
(function (ToolbarOrientation) {
    /** Horizontal toolbar. */
    ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
    /** Vertical toolbar. */
    ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
})(ToolbarOrientation || (ToolbarOrientation = {}));
/** ToolbarActionItem type guard.
 * @public
 */
export function isToolbarActionItem(item) {
    return "execute" in item;
}
/** ToolbarGroupItem type guard.
 * @public
 */
export function isToolbarGroupItem(item) {
    return "items" in item;
}
/** ToolbarCustomItem type guard.
 * @public
 */
export function isToolbarCustomItem(item) {
    return !isToolbarActionItem(item) && !isToolbarGroupItem(item);
}
//# sourceMappingURL=ToolbarItem.js.map