import "../../tailor-proto/src/tailor/v1/resource_pb.mjs"; import { z } from "zod"; //#region src/cli/shared/args.d.ts /** * Schema for sort order (`asc` or `desc`). */ export declare const orderArg: z.ZodEnum<{ asc: "asc"; desc: "desc"; }>; export type Order = z.infer; type EnvFileArg = string | string[] | undefined; /** * Load env files from parsed arguments. * Processes --env-file first, then --env-file-if-exists. * * Follows Node.js --env-file behavior: * - Variables already set in the environment are NOT overwritten * - Variables from later files override those from earlier files * @param envFiles - Required env file path(s) that must exist * @param envFilesIfExists - Optional env file path(s) that are loaded if they exist */ export declare function loadEnvFiles(envFiles: EnvFileArg, envFilesIfExists: EnvFileArg): void; interface CommonArgsOptions { /** Extra short alias for `--verbose` (e.g. `"v"`), for plugins that need one */ verboseAlias?: string; } /** * Build the common arguments for all CLI commands. CLI plugins call this so * their forwarded global flags parse identically to the host Tailor CLI and * feed the same logger state. * * NOTE: --env-file and --env-file-if-exists collide with Node.js flags due to a bug * (https://github.com/nodejs/node/issues/54232). Node.js parses these even after the * script path, causing warnings (twice due to tsx loader). * @param options - Per-plugin adjustments to the shared arguments * @returns Argument shape suitable for spreading into a command schema */ export declare function createCommonArgs(options?: CommonArgsOptions): { "env-file": z.ZodOptional; "env-file-if-exists": z.ZodOptional; verbose: z.ZodDefault; json: z.ZodDefault; }; /** * Common arguments for all CLI commands */ export declare const commonArgs: { "env-file": z.ZodOptional; "env-file-if-exists": z.ZodOptional; verbose: z.ZodDefault; json: z.ZodDefault; }; /** * Arguments for commands that require workspace context */ export declare const workspaceArgs: { "workspace-id": z.ZodOptional; profile: z.ZodOptional; }; /** * Shared config arg for commands that accept a config file path */ export declare const configArg: { config: z.ZodDefault; }; /** * Arguments for commands that interact with deployed resources (includes config) */ export declare const deploymentArgs: { config: z.ZodDefault; "workspace-id": z.ZodOptional; profile: z.ZodOptional; }; /** * Arguments for commands that require confirmation */ export declare const confirmationArgs: { yes: z.ZodDefault; }; export type CommonArgsType = z.infer>; //#endregion