/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Tools
 */
import * as React from "react";
import { clearKeyinPaletteHistory } from "../popup/KeyinPalettePanel.js";
import { Tool } from "@itwin/core-frontend";
import { ToolUtilities } from "@itwin/imodel-components-react";
import { SvgRemove } from "@itwin/itwinui-icons-react";
class ClearKeyinPaletteHistoryCoreTool extends Tool {
    static toolId = "ClearKeyinPaletteHistory";
    static iconSpec = "icon-remove";
    static get minArgs() {
        return 0;
    }
    static get maxArgs() {
        return 0;
    }
    async run() {
        clearKeyinPaletteHistory();
        return true;
    }
}
/**
 * Immediate tool that will clear the recent history of command/tool keyins shown in
 * the command palette.
 * @alpha
 */
export const ClearKeyinPaletteHistoryTool = ToolUtilities.defineIcon(ClearKeyinPaletteHistoryCoreTool, React.createElement(SvgRemove, null));
//# sourceMappingURL=KeyinPaletteTools.js.map