/**
 * @license
 * Copyright 2022-2026 Greg Lauckhart <greg@lauckhart.com>
 * SPDX-License-Identifier: Apache-2.0
 */
import { Package } from "../../util/package.js";
import { TypescriptContext } from "./context.js";
export declare function createTsgoContext(workspace: Package): TypescriptContext;
/**
 * Copy .d.ts and .d.ts.map from dist/esm/ to dist/cjs/.
 */
export declare function copyDeclarationsToCjs(pkg: Package): Promise<void>;
export interface TsgoResult {
    ok: boolean;
    /**
     * True when outputs were skipped (exit code 2) — affected packages should not be transpiled.  When false, outputs
     * were generated despite diagnostics (exit code 1) and transpilation can proceed.
     */
    outputsSkipped: boolean;
    errorsByPackage: Map<string, string>;
    /**
     * Raw captured stdout — used to surface diagnostics that don't match the (line,col) parser (TS5xxx config errors,
     * TS6xxx command-line errors).
     */
    rawOutput: string;
}
/**
 * Run tsgo in solution build mode (-b) for the entire workspace or a scoped set of packages.
 *
 * Captures diagnostics and maps them to packages by file path. Does not throw on type errors — the caller decides how
 * to handle failures.
 */
export declare function tsgoSolutionBuild(workspace: Package, tsconfigPath: string): Promise<TsgoResult>;
//# sourceMappingURL=tsgo.d.ts.map