import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
import type { string_book } from '../../book-2.0/agent-source/string_book';
import type { string_javascript_name } from '../../types/string_person_fullname';
import type { TranspiledTeamAgentModelRequirements, TranspiledTeamExport, TranspiledTeamTeammate } from './TranspiledTeamExport';
/**
 * Creates the full transpiled TEAM export used by generated harnesses.
 *
 * @param options - Root source, compiled requirements, and optional server-resolved hierarchy.
 * @returns Normalized team export, or `null` when no TEAM tools are present.
 *
 * @private shared between transpilers
 */
export declare function createTranspiledTeamExportForContext(options: {
    readonly agentName: string;
    readonly agentSource: string_book;
    readonly modelRequirements: AgentModelRequirements;
    readonly transpiledTeam?: TranspiledTeamExport;
}): TranspiledTeamExport | null;
/**
 * Extracts serializable TEAM teammate metadata from model requirements.
 *
 * @param modelRequirements - Compiled agent requirements with TEAM metadata.
 * @returns Teammates safe to embed in transpiled code.
 *
 * @private shared between transpilers
 */
export declare function extractTranspiledTeamTeammates(modelRequirements: AgentModelRequirements): ReadonlyArray<TranspiledTeamTeammate>;
/**
 * Creates the serializable model-requirement subset embedded for each built-in teammate.
 *
 * @param modelRequirements - Full compiled model requirements.
 * @returns Minimal model requirements needed by transpiled TEAM helpers.
 *
 * @private shared between transpilers
 */
export declare function createTranspiledTeamAgentModelRequirements(modelRequirements: AgentModelRequirements): TranspiledTeamAgentModelRequirements;
/**
 * Replaces TEAM tool closures with self-contained transpiled TEAM tool functions.
 *
 * @param usedToolFunctions - Tool implementation sources collected from commitment definitions.
 * @param transpiledTeam - Built-in team hierarchy prepared for the generated harness.
 * @returns Tool implementations with TEAM tools pointing to the reusable runtime helper.
 *
 * @private shared between transpilers
 */
export declare function createTranspiledTeamAwareToolFunctions(usedToolFunctions: Record<string_javascript_name, string>, transpiledTeam: TranspiledTeamExport | null): Record<string_javascript_name, string>;
/**
 * Creates the reusable JavaScript TEAM runtime block embedded into generated harnesses.
 *
 * @param transpiledTeam - Built-in team hierarchy prepared for the generated harness.
 * @returns JavaScript source, or an empty string when there is no TEAM hierarchy.
 *
 * @private shared between transpilers
 */
export declare function createTranspiledTeamRuntimeSection(transpiledTeam: TranspiledTeamExport | null): string;
