import type { LanguageOperation, LanguagePackageOutcome, LanguageProfileId, LanguageRunResult } from './types.js'; interface LegacyBridgeContext { cwd: string; projectRoot: string; signal: AbortSignal; target?: string | undefined; } /** * Quick check: does the cwd (or any parent up to projectRoot) contain a * non-JS ecosystem marker? Returns the detected language or `null`. */ export declare function detectNonJsEcosystem(cwd: string, projectRoot: string): Promise; interface LegacyBridgeResult { language: LanguageProfileId; run?: LanguageRunResult; outcome?: LanguagePackageOutcome; } /** * Attempt to plan and execute a code-quality operation through the language * system. Returns the result or `null` when the workspace is JS/TS or the * planner has no plan. */ export declare function tryLegacyCodeOperation(operation: LanguageOperation, ctx: LegacyBridgeContext): Promise; /** * Attempt to plan and execute a package operation through the language * system. Returns the result or `null` when the workspace is JS/TS. */ export declare function tryLegacyPackageOperation(operation: LanguageOperation, ctx: LegacyBridgeContext, packages?: readonly string[]): Promise; export {}; //# sourceMappingURL=legacy-bridge.d.ts.map