/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import * as semver from "semver"; import { type VersionBumpType, type VersionScheme } from "@fluid-tools/version-tools"; import type { ReleaseGroupName } from "@fluid-tools/build-infrastructure"; /** * A re-usable CLI flag to parse release groups. */ export declare const releaseGroupFlag: import("@oclif/core/interfaces").FlagDefinition<"client" | "server" | "build-tools" | "gitrest" | "historian", import("@oclif/core/interfaces").CustomOptions, { multiple: false; requiredOrDefaulted: false; }>; /** * A re-usable CLI flag to parse release group names. */ export declare const releaseGroupNameFlag: import("@oclif/core/interfaces").FlagDefinition; /** * A re-usable CLI flag to parse release groups along with the value "all" to indicate all release groups. */ export declare const releaseGroupWithAllFlag: import("@oclif/core/interfaces").FlagDefinition<"client" | "server" | "build-tools" | "all" | "gitrest" | "historian", import("@oclif/core/interfaces").CustomOptions, { multiple: false; requiredOrDefaulted: false; }>; /** * A re-usable CLI flag to parse package names. */ export declare const packageSelectorFlag: import("@oclif/core/interfaces").FlagDefinition; /** * A re-usable CLI flag to parse semver version strings. Values are verified to be valid semvers during flag parsing. */ export declare const semverFlag: import("@oclif/core/interfaces").FlagDefinition; /** * A re-usable CLI flag to parse semver ranges. */ export declare const semverRangeFlag: import("@oclif/core/interfaces").FlagDefinition; /** * A re-usable CLI flag to parse bump types. */ export declare const bumpTypeExtendedFlag: import("@oclif/core/interfaces").FlagDefinition<"major" | "minor" | "patch" | "current", import("@oclif/core/interfaces").CustomOptions, { multiple: false; requiredOrDefaulted: false; }>; /** * A re-usable CLI flag to parse bump types. */ export declare const bumpTypeFlag: import("@oclif/core/interfaces").FlagDefinition; /** * A re-usable CLI flag to parse dependency update types. */ export declare const dependencyUpdateTypeFlag: import("@oclif/core/interfaces").FlagDefinition<"minor" | "patch" | "latest" | `@${string}` | "newest" | "greatest", import("@oclif/core/interfaces").CustomOptions, { multiple: false; requiredOrDefaulted: false; }>; /** * A re-usable CLI flag to parse version schemes used to adjust versions. */ export declare const versionSchemeFlag: import("@oclif/core/interfaces").FlagDefinition; /** * A re-usable CLI flag used to enable test-only behavior in commands. The flag is hidden because it is intended to only * be used for internal testing. */ export declare const testModeFlag: import("@oclif/core/interfaces").BooleanFlag; /** * Reusable flags for cases where a command typically checks something before taking action. They default to true, but * can be negated with `--no-`. Intended to be used with {@link skipCheckFlag}. * * @remarks * * You must use these flags in your command logic in order for them to have any effect. * * @example * * All of the check flags can be used like this: * * ``` * static flags = { * ...checkFlags, * }; * ``` * * @example * * You can also use them individually like so: * * ``` * static flags = { * commit: checkFlags.commit, * install: checkFlags.install, * }; * ``` */ export declare const checkFlags: { commit: import("@oclif/core/interfaces").BooleanFlag; install: import("@oclif/core/interfaces").BooleanFlag; branchCheck: import("@oclif/core/interfaces").BooleanFlag; updateCheck: import("@oclif/core/interfaces").BooleanFlag; policyCheck: import("@oclif/core/interfaces").BooleanFlag; }; /** * A reusable flag intended to be used with {@link checkFlags} to provide a single flag that can be used to skip all * checks. * * @remarks * * You must use this flag in conjuction with the {@link checkFlags} in your command logic in order for it to have any * effect. */ export declare const skipCheckFlag: import("@oclif/core/interfaces").BooleanFlag; /** * A set of flags that can be used to select packages in the repo. These flags provide a common way for commands to * implement package selection and filtering. */ export declare const selectionFlags: { all: import("@oclif/core/interfaces").BooleanFlag; dir: import("@oclif/core/interfaces").OptionFlag; packages: import("@oclif/core/interfaces").BooleanFlag; releaseGroup: import("@oclif/core/interfaces").OptionFlag<("client" | "server" | "build-tools" | "all" | "gitrest" | "historian")[] | undefined, import("@oclif/core/interfaces").CustomOptions>; releaseGroupRoot: import("@oclif/core/interfaces").OptionFlag<("client" | "server" | "build-tools" | "all" | "gitrest" | "historian")[] | undefined, import("@oclif/core/interfaces").CustomOptions>; changed: import("@oclif/core/interfaces").BooleanFlag; branch: import("@oclif/core/interfaces").OptionFlag; }; /** * This interface is used for type enforcement of selection flags. The default oclif typing is complex and difficult to * simplify, so this type just mirrors the object above with simpler typing. This should ONLY be used when processing * raw flags. * * @internal */ export interface selectionFlags { readonly all: boolean; readonly dir: string[] | undefined; readonly packages: boolean; readonly releaseGroup: string[] | undefined; readonly releaseGroupRoot: string[] | undefined; readonly changed: boolean; readonly branch: string; } export declare const defaultSelectionKinds: readonly ["dir", "all"]; /** * A type representing the possible ways a command can set its default selection criteria when no selection flags are * used. */ export type PackageSelectionDefault = (typeof defaultSelectionKinds)[number] | undefined; /** * A set of flags that can be used to filter selected packages in the repo. */ export declare const filterFlags: { private: import("@oclif/core/interfaces").BooleanFlag; scope: import("@oclif/core/interfaces").OptionFlag; skipScope: import("@oclif/core/interfaces").OptionFlag; }; /** * This interface is used for type enforcement of filter flags. The default oclif typing is complex and difficult to * simplify, so this type just mirrors the object above with simpler typing. This should ONLY be used when processing * raw flags. * * @internal */ export interface filterFlags { readonly private: boolean; readonly scope: string[] | undefined; readonly skipScope: string[] | undefined; } /** * A reusable flag for GitHub tokens. */ export declare const githubTokenFlag: import("@oclif/core/interfaces").FlagDefinition; /** * A reusable flag to indicate the command is running in the GitHub Actions environment. This value is typically parsed * from the GITHUB_ACTIONS environment variable but can be set manually for testing. */ export declare const githubActionsFlag: import("@oclif/core/interfaces").BooleanFlag; //# sourceMappingURL=flags.d.ts.map