import type { Paths } from '../../utils/index.js'; import { type EnvDocument } from '../../utils/env-file.js'; import type { WorldAssignmentSnapshot } from '../../domain/services/worldAssignment.js'; import { universeLocation } from '../../domain/server-spec/extraArgs.js'; export { universeLocation }; /** * How a server's effective EXTRA_ARGS (and so where its world lives) is * resolved, and the world assignment snapshot built from it (ADR-0002). One * copy for the world assignment adapter (#670) and the ServerSpec repository * (#675, ADR-0003), so both read a server the same way. The repository uses * the snapshot reader directly, not the adapter, because the adapter's * writes go through the repository (ADR-0003 ยง2). */ /** Inherited EXTRA_ARGS: a value, none, or unreadable (the servers relying on it are undetermined). */ export type InheritedExtraArgs = string | undefined | Error; /** * Whether the effective (last) `KEY=` line is subject to Compose * interpolation: unquoted and double-quoted values are, single-quoted ones * are literal. Such a value has no fixed name, so it is undetermined (R7). */ export declare function isInterpolated(doc: EnvDocument, key: string): boolean; /** * EXTRA_ARGS a server gets from servers/global.env (a bare `EXTRA_ARGS` line * takes the platform .env value). `dotenvOverride` replaces the .env content. */ export declare function readInheritedExtraArgs(paths: Paths, dotenvOverride?: string): Promise; /** * World assignments derived from each server's config.env (ADR-0002). * `override` replaces one server's config.env (preview), `dotenvOverride` * the platform .env. Rejects only when servers/ cannot be listed. */ export declare function readWorldAssignmentSnapshot(paths: Paths, override?: { server: string; content: string; }, dotenvOverride?: string): Promise; //# sourceMappingURL=effectiveExtraArgs.d.ts.map