import type { ExecPayload } from './schema.js'; export declare const isPwsh: (cmd: string) => boolean; export declare const isCmd: (cmd: string) => boolean; export declare function formatForCmdExe(args: string[]): string[]; export declare function convertToWslPath(winPath: string): string; export declare function buildPwshWrapper(cmd: string, args: string[]): { cmd: string; args: string[]; }; export declare function escapeUnixArg(arg: string, allowGlobs?: boolean): string; export declare function healRegexPattern(pattern: string): string; export declare function sanitizeWslRegex(regexArg: string): string; export declare function tokenizeArgs(str: string): string[]; export declare function applyTemplateOverride(templateOverride: string, baseCmd: string, baseArgs: string[], replaceTemplates: (str: string) => string): { cmd: string; args: string[]; }; export declare function resolveWindowsCommand(cmd: string, cwd: string, payloadEnv?: Record): string; export declare function findPatternExprIndex(cmd: string, args: string[]): number; export declare function getPositionalArgs(cmd: string, args: string[]): string[]; export declare function buildWslEnvArgs(payloadEnv?: Record, envOverrides?: Record): string[]; export declare function handleWindowsUnixCommandWrappers(cmd: string, args: string[], payload: ExecPayload): { cmd: string; args: string[]; }; export declare function healFragmentedQuotes(args: string[]): string[]; export declare function tryHealJsonPayload(rawJson: string): unknown | null; export declare function getUnderlyingPackageScript(cmdBasename: string, args: string[] | undefined, payloadCwd: string | undefined): string; //# sourceMappingURL=command-utils.d.ts.map