/**
 * IssueEnvelope → Spawn Context Mapper
 *
 * Deterministically maps an IssueEnvelope to spawn context data
 * (prompt text + metadata) for agent execution.
 */
import type { IssueEnvelope, IssueSpawnContext } from './types.js';
/**
 * Map an IssueEnvelope to spawn context data.
 *
 * Produces:
 * - A structured prompt string containing the issue details
 * - Metadata key-value pairs for ticket context
 *
 * The mapping is deterministic: the same IssueEnvelope always produces
 * the same IssueSpawnContext.
 *
 * @param input - IssueEnvelope-like input
 * @returns Spawn context with prompt and metadata
 * @throws ExternalIssueError when input fails IssueEnvelope validation
 */
export declare function mapToSpawnContext(input: IssueEnvelope | unknown): IssueSpawnContext;
