export declare const GOVERN_DEPTH_ENV = "SYNTH_GOVERN_DEPTH"; /** * Cross-platform npm executable name. * Windows npm is `npm.cmd`; everywhere else it is `npm`. * Using this avoids the `shell: true` deprecation warning while still * spawning npm correctly on all supported platforms. */ export declare function npmCommand(): string; export type GovernDelegationCondition = "delegated" | "missing-package-json" | "missing-govern-script" | "cyclic-script" | "depth-marker"; export type GovernDelegationVerdict = { allowed: true; childEnv: NodeJS.ProcessEnv; condition: "delegated"; } | { allowed: false; message: string; condition: Exclude; }; /** * Build the human-readable diagnostic message for a delegation condition. */ export declare function governDelegationMessage(condition: GovernDelegationCondition, detail?: string): string; export declare function checkGovernDelegation(cwd: string, env?: NodeJS.ProcessEnv): GovernDelegationVerdict;