import type { Mastra } from '../../mastra/index.js';
import type { Target } from './executor.js';
/**
 * Resolve a target from Mastra's registries by type and ID.
 * When `agentVersion` is provided for an agent target, the returned agent
 * will have the versioned config applied (via `applyStoredOverrides`).
 *
 * The result is wrapped in `{ target }` because `Workflow` has a `.then`
 * method for step chaining, which makes it thenable. Returning a thenable
 * from an async function causes the Promise machinery to attempt to unwrap
 * it, which hangs forever since the builder `.then` never invokes its
 * callbacks. Wrapping in a plain object avoids the unwrap.
 */
export declare function resolveTarget(mastra: Mastra, targetType: string, targetId: string, agentVersion?: string): Promise<{
    target: Target;
} | null>;
//# sourceMappingURL=resolve-target.d.ts.map