import type { ResultType, UnionType, TypeAliasEntry } from "../types/typeHints.js"; /** * The canonical discriminated-union view of a Result, keyed on `success`. * Single source of truth for "what fields a Result has" — mirrors the runtime * shape in lib/runtime/result.ts. The type checker consumes Result through this * (narrowing + field access) rather than special-casing `resultType`. */ export declare function resultToObjectUnion(rt: ResultType, _aliases: Record): UnionType;