/** The current node's id (`CRTR_NODE_ID`), or undefined outside a node. */ export declare function envNodeId(): string | undefined; /** The current run's scope allow-list; null means the row inherits everything. */ export declare function envScopes(): readonly string[] | null; /** Whether an allow-list holds a capability. Parameterized memory-read scopes are equivalent in beta. */ export declare function scopeAllowed(scopes: readonly string[] | null | undefined, scope: string): boolean; export declare function envExecutionId(): string | undefined; /** The current node's target profile id (`CRTR_PROFILE_ID`), or undefined. */ export declare function envProfileId(): string | undefined; /** The current node's working directory (`CRTR_NODE_CWD`), or undefined. */ export declare function envNodeCwd(): string | undefined; /** An explicit model-routing override for this turn (`CRTR_MODEL_INTENT`), or * undefined. Cleared (not read) via `delete process.env['CRTR_MODEL_INTENT']` * in `runtime/broker.ts` — a mutation, not a read, so it stays there. */ export declare function envModelIntent(): string | undefined; /** Whether the launch recipe requires this broker to keep its exact provider/model. */ export declare function envModelExact(): boolean; /** The raw `CRTR_HOME` override, unresolved. Use `crtrHome()` * (`core/canvas/paths.ts`) to get the resolved canvas-home path; use this * only when a caller needs the override itself — to check whether one is * set, or to propagate it verbatim into a child process's env. */ export declare function envHomeOverride(): string | undefined; /** The raw installed-runtime directory override, unresolved. */ export declare function envRuntimeHomeOverride(): string | undefined; /** Dead-provider watchdog timeout (`CRTR_STREAM_WATCHDOG_MS`), 5 minutes by * default. See `runtime/stream-watchdog.ts` for what it guards. */ export declare function envStreamWatchdogMs(): number; /** The canvas inbox watcher's poll tick (`CRTR_WATCHER_TICK_MS`). */ export declare function envWatcherTickMs(): number; /** The canvas inbox watcher's debounce window (`CRTR_WATCHER_DEBOUNCE_MS`). */ export declare function envWatcherDebounceMs(): number; /** No-new-message window before a recap is shown (`CRTR_RECAP_IDLE_MS`), 60s * by default. */ export declare function envRecapIdleMs(): number; /** Explicit recap-model override (`CRTR_RECAP_MODEL`), trimmed; undefined if * unset or blank. */ export declare function envRecapModelOverride(): string | undefined; /** The bash safety-valve deadline (`CRTR_BASH_VALVE_MS`), 5 minutes by * default; undocumented test-only override so the E2E valve check doesn't * sleep 5 minutes. */ export declare function envBashValveMs(): number; /** How long an AUTO-backgrounded bash job may run before the daemon cancels it * unless the agent claims it (`CRTR_BASH_AUTO_BG_DEADLINE_MS`), 60s by default; * undocumented test-only override so the deadline check doesn't wait a minute. */ export declare function envBashAutoBgDeadlineMs(): number; /** Explicit pidfile path override (`CRTR_PIDFILE`, tests only); undefined if * unset or blank. */ export declare function envPidfileOverride(): string | undefined; /** The broker engine module spec (`CRTR_BROKER_ENGINE`, the T11 test seam), * defaulting to the real SDK. `runtime/host.ts` layers `inv.env` ahead of * this (a launch-time override mirrored into the child's env, since * spawn-env.ts's default-deny allowlist strips `CRTR_*` from ambient env). */ export declare function envBrokerEngine(): string; /** Test-only pi-binary substitution (`CRTR_PI_BINARY`) so the integration * harness can point a real `crtr node new` at a deterministic fake-pi * vehicle. Undefined in production. */ export declare function envPiBinaryOverride(): string | undefined; /** Whether implicit daemon autostart is suppressed for this invocation * (`CRTR_NO_DAEMON_AUTOSTART=1`). */ export declare function envNoDaemonAutostart(): boolean; /** The `--tcp` fallback for crtrd's opt-in TCP listener (`CRTRD_TCP`), raw * (`host:port` or undefined — absent means unix socket only). */ export declare function envCrtrdTcp(): string | undefined; /** The opt-in bearer token guarding crtrd's TCP listener (`CRTRD_TOKEN`). * Unset (or blank) → undefined, and the TCP listener performs NO auth check * at all — exactly today's behavior. The unix socket never checks this, * set or not. */ export declare function envCrtrdToken(): string | undefined; /** Kill switch for the host-exports writer/pruner (`CRTR_NO_EXPORTS=1`). */ export declare function envNoExports(): boolean; /** Verbose-diagnostics gate for otherwise-silent best-effort catches * (`CRTR_DEBUG=1`). Distinct from `CRTR_DEBUG_PID_LIVENESS` * (`core/canvas/pid.ts`), a different, unrelated var. */ export declare function envDebug(): boolean; /** Live-broker automatic-revive cap override (`CRTR_MAX_LIVE_BROKERS`); wins * over `readConfig('user').brokerThresholds.automaticReviveCap` when set. */ export declare function envMaxLiveBrokers(): number | undefined; /** Live-broker warning threshold override (`CRTR_WARN_LIVE_BROKERS`); wins * over `readConfig('user').brokerThresholds.warning` when set. */ export declare function envWarnLiveBrokers(): number | undefined; /** Test-only unattended-park interval override (`CRTR_TEST_UNATTENDED_PARK_MS`), * gated by `envNoDaemonAutostart()` at the call site; no production default. */ export declare function envTestUnattendedParkMs(): number | undefined; /** Production unattended-park interval override (`CRTR_UNATTENDED_PARK_MS`), in * milliseconds; wins over the user-scope config value * (`readConfig('user').lifecycle.unattendedParkMs`, itself defaulting to 15 * min) whenever set, autostart or not. Unlike `CRTR_TEST_UNATTENDED_PARK_MS` * this is not gated on `envNoDaemonAutostart()`: it is the env escape hatch * above the configured knob a deployment sets to tune how long an eligible * resident idles before its parking turn. */ export declare function envUnattendedParkMs(): number | undefined; /** Test-only park-summary grace-period override * (`CRTR_TEST_PARK_SUMMARY_GRACE_MS`); no production default. */ export declare function envTestParkSummaryGraceMs(): number | undefined; /** The bounded lifetime shared by the daemon's pending-park sweep and its * in-broker isolated turn. */ export declare function parkSummaryGraceMs(): number;