"use strict";
/*---------------------------------------------------------------------------------------------
 * 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
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isToolbarCustomItem = exports.isToolbarGroupItem = exports.isToolbarActionItem = exports.ToolbarOrientation = exports.ToolbarUsage = void 0;
/** Used to specify the usage of the toolbar which determine the toolbar position.
 * @public
 */
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 = exports.ToolbarUsage || (exports.ToolbarUsage = {}));
/** Used to specify the orientation of the toolbar.
 * @public
 */
var ToolbarOrientation;
(function (ToolbarOrientation) {
    /** Horizontal toolbar. */
    ToolbarOrientation[ToolbarOrientation["Horizontal"] = 0] = "Horizontal";
    /** Vertical toolbar. */
    ToolbarOrientation[ToolbarOrientation["Vertical"] = 1] = "Vertical";
})(ToolbarOrientation = exports.ToolbarOrientation || (exports.ToolbarOrientation = {}));
/** ToolbarActionItem type guard.
 * @public
 */
function isToolbarActionItem(item) {
    return "execute" in item;
}
exports.isToolbarActionItem = isToolbarActionItem;
/** ToolbarGroupItem type guard.
 * @public
 */
function isToolbarGroupItem(item) {
    return "items" in item;
}
exports.isToolbarGroupItem = isToolbarGroupItem;
/** ToolbarCustomItem type guard.
 * @public
 */
function isToolbarCustomItem(item) {
    return !isToolbarActionItem(item) && !isToolbarGroupItem(item);
}
exports.isToolbarCustomItem = isToolbarCustomItem;
//# sourceMappingURL=ToolbarItem.js.map