/*---------------------------------------------------------------------------------------------
 * 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 { clearKeyinPaletteHistory } from "../popup/KeyinPalettePanel";
import { Tool } from "@itwin/core-frontend";
import svgRemove from "@bentley/icons-generic/icons/remove.svg";
import { IconSpecUtilities } from "@itwin/appui-abstract";
/**
 * Immediate tool that will clear the recent history of command/tool keyins shown in
 * the command palette.
 * @alpha
 */
class ClearKeyinPaletteHistoryTool extends Tool {
    // istanbul ignore next
    static get minArgs() {
        return 0;
    }
    // istanbul ignore next
    static get maxArgs() {
        return 0;
    }
    async run() {
        clearKeyinPaletteHistory();
        return true;
    }
}
ClearKeyinPaletteHistoryTool.toolId = "ClearKeyinPaletteHistory";
ClearKeyinPaletteHistoryTool.iconSpec = IconSpecUtilities.createWebComponentIconSpec(svgRemove);
export { ClearKeyinPaletteHistoryTool };
//# sourceMappingURL=KeyinPaletteTools.js.map