import { MittwaldAPIV2Client } from "@mittwald/api-client"; import { Config } from "@oclif/core"; /** * Stack selection for commands that operate on a project's default stack unless * told otherwise. Resolve these with `withStackIdOrDefault`. */ export declare const optionalStackFlags: { "stack-id": import("@oclif/core/interfaces").OptionFlag; }; export declare const stackFlags: import("../../context/FlagSetBuilder.js").ContextFlags<"stack">, stackArgs: import("../../context/FlagSetBuilder.js").ContextArgs<"stack">, withStackId: (apiClient: MittwaldAPIV2Client, command: "flag" | "arg" | import("../../context/FlagSetBuilder.js").CommandType<"stack">, flags: { [k: string]: unknown; }, args: { [k: string]: unknown; }, cfg: Config) => Promise; /** * Resolves the stack that a project-scoped command should operate on. * * Unlike `withStackId`, this does not fail when no stack can be determined; it * falls back to the project's default stack (whose ID is identical to the * project ID). This keeps commands that used to be hard-wired to the default * stack working as before, while allowing any other stack to be addressed * explicitly. */ export declare function withStackIdOrDefault(apiClient: MittwaldAPIV2Client, flags: { [k: string]: unknown; }, projectId: string, cfg: Config): Promise;