/**
 * Response Formatters
 *
 * Functions to format domain objects for JSON API responses.
 */
import type { Task } from '@stoneforge/core';
import type { SessionRecord, WorktreeInfo, StewardExecutionEntry, PluginExecutionResult } from '../index.js';
export declare function formatTaskResponse(task: Task, hydratedDescription?: string | null): {
    id: import("@stoneforge/core").ElementId;
    title: string;
    description: string | undefined;
    status: import("@stoneforge/core").TaskStatus;
    priority: import("@stoneforge/core").Priority;
    complexity: import("@stoneforge/core").Complexity;
    taskType: import("@stoneforge/core").TaskTypeValue;
    assignee: import("@stoneforge/core").EntityId | undefined;
    owner: import("@stoneforge/core").EntityId | undefined;
    deadline: string | undefined;
    scheduledFor: string | undefined;
    tags: string[];
    createdAt: string;
    updatedAt: string;
    metadata: {
        orchestrator: {
            branch: string | undefined;
            worktree: string | undefined;
            sessionId: string | undefined;
            assignedAgent: import("@stoneforge/core").EntityId | undefined;
            startedAt: string | undefined;
            completedAt: string | undefined;
            mergeStatus: import("../index.js").MergeStatus | undefined;
            mergedAt: string | undefined;
            lastTestResult: import("../index.js").TestResult | undefined;
            testRunCount: number | undefined;
        } | undefined;
    };
};
export declare function formatSessionRecord(session: SessionRecord): {
    id: string;
    providerSessionId: string | undefined;
    agentId: import("@stoneforge/core").EntityId;
    agentRole: import("../index.js").AgentRole;
    workerMode: import("../index.js").WorkerMode | undefined;
    pid: number | undefined;
    status: import("../index.js").SessionStatus;
    workingDirectory: string;
    worktree: string | undefined;
    createdAt: string;
    startedAt: string | undefined;
    lastActivityAt: string;
    endedAt: string | undefined;
    terminationReason: string | undefined;
};
export declare function formatWorktreeInfo(worktree: WorktreeInfo): {
    path: string;
    relativePath: string;
    branch: string;
    head: string;
    isMain: boolean;
    state: import("../index.js").WorktreeState;
    agentName: string | undefined;
    taskId: string | undefined;
    createdAt: string | undefined;
};
export declare function formatExecutionEntry(entry: StewardExecutionEntry): {
    executionId: string;
    stewardId: import("@stoneforge/core").EntityId;
    stewardName: string;
    trigger: import("../index.js").StewardTrigger;
    manual: boolean;
    startedAt: string;
    completedAt: string | undefined;
    result: import("../index.js").StewardExecutionResult | undefined;
    eventContext: Record<string, unknown> | undefined;
};
export declare function formatPluginExecutionResult(result: PluginExecutionResult): {
    pluginName: string;
    pluginType: import("../index.js").PluginType;
    success: boolean;
    error: string | undefined;
    stdout: string | undefined;
    stderr: string | undefined;
    exitCode: number | undefined;
    durationMs: number;
    itemsProcessed: number | undefined;
    startedAt: string;
    completedAt: string;
};
export declare function generateActivitySummary(event: {
    eventType: string;
    oldValue: Record<string, unknown> | null;
    newValue: Record<string, unknown> | null;
}, elementType?: string, elementTitle?: string): string;
//# sourceMappingURL=formatters.d.ts.map