/** The shell's answer. `unknown` = the root is not a directory in the shell's view, or its `test` has no `-ef`:
 *  no judgment, so no observation. */
export type CwdAlignmentVerdict = "same" | "differ" | "unknown";
/**
 * The probe's last sub-command: the shell asks whether its working directory and the task root are one directory
 * (`test . -ef <root>`: the same filesystem object, links followed, spelling and case irrelevant) and prints one
 * line `cwd-alignment:<same|differ|unknown>:<its pwd -P>`. The line carries its own marker, so a banner a login
 * shell prints first moves nothing.
 */
export declare function cwdAlignmentProbe(taskRoot: string): string;
/** The framed answer and the shell's own `pwd -P` reading, found by its marker (the last such line — the probe's
 *  last sub-command — wherever earlier output put it); a word outside the closed set reads `unknown`; no framed
 *  line at all reads `undefined` (the probe's tail never arrived: nothing to judge). */
export declare function readCwdAlignment(lines: readonly string[]): {
    verdict: CwdAlignmentVerdict;
    shellPwd: string;
} | undefined;
/** The operator-lane sentence for a `differ` verdict: the two readings and the shell's finding, nothing about
 *  where an exec or an artifact would land. */
export declare function cwdMisalignmentMessage(taskRoot: string, shellPwd: string): string;
