/**
 * Loud-fail port-env resolver. Single doctrine surface for every runtime
 * site that reads a network port from the environment.
 *
 * Per Task 139: no hardcoded numeric fallbacks. If the env var is missing
 * or doesn't parse as an integer in the valid TCP port range, throw with
 * a one-line diagnostic in the canonical shape
 *
 *   [<tag>] <fail-line> reason=missing-env env=<NAME>
 *
 * matching the Task 134 hook diagnostic so one grep
 * (`reason=missing-env env=`) lists every misconfigured device in the field.
 *
 * Callers in server entry points should let the throw propagate; systemd's
 * Restart=on-failure cycles visibly. Callers in long-lived processes should
 * surface the same line on stderr before exit.
 */
export interface RequirePortEnvOptions {
    /** Diagnostic tag prefixed to the fail line. Defaults to "port-env". */
    tag?: string;
    /** Fail line written after the tag. Defaults to "missing-port-env". */
    failLine?: string;
}
export declare class MissingPortEnvError extends Error {
    readonly envName: string;
    readonly tag: string;
    readonly failLine: string;
    constructor(envName: string, tag: string, failLine: string, message: string);
}
export declare function requirePortEnv(envName: string, options?: RequirePortEnvOptions): number;
//# sourceMappingURL=index.d.ts.map