export type EnvMap = ReadonlyMap; /** * `envMapping` of a step, minus every variable its `run:` script assigns: a reassigned variable no * longer holds the step's declared value, so it is left unsubstituted. */ export declare function stepEnv(step: { env?: unknown; run?: string; }): EnvMap; /** * Strips quotes, rewrites `${X}` as `$X` and `${{ env.X }}` as `$X`, then replaces each `$NAME` * the step `env:` defines with that value, so a step-local binding is compared by what it holds * (an expression or a literal), not by its name. */ export declare function normalizeText(text: string, env?: EnvMap): string; /** The variable name when an image argument is exactly `$VAR`, `"$VAR"` or `${VAR}` (not single-quoted). */ export declare function variableName(token: string): string | undefined; /** * Value of the last `VAR=value` statement in `before` (the same run block, earlier lines). Only * unindented statements outside any open `(`/`{` group are trusted: an indented assignment may sit * in a branch that does not run, and a grouped one in a subshell or function, so the variable is * then left unresolved. */ export declare function lastAssignment(before: string, name: string): string | undefined;