import { type FileDecisionAction } from "@stigmer/protos/ai/stigmer/agentic/agentexecution/v1/enum_pb";
import type { WorkflowPendingFileReview } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
import type { FileDecisionOptions } from "../execution/useFileReview.js";
/**
 * Submit handler for a workflow-level file decision, matching
 * `useWorkflowExecutionActions().submitFileDecision`. The child id is bound per
 * card so the surface only needs the card-level `(action, options)`.
 */
export type WorkflowFileDecisionSubmit = (childAgentExecutionId: string, changeSetId: string, action: FileDecisionAction, options?: FileDecisionOptions) => void;
/** Props for {@link WorkflowFileReviewList}. */
export interface WorkflowFileReviewListProps {
    /**
     * The parent workflow's surfaced file-review references
     * (`status.pending_file_reviews`) — one entry per child agent execution.
     */
    readonly pendingFileReviews: readonly WorkflowPendingFileReview[];
    /** Forwards a decision to the child (see {@link WorkflowFileDecisionSubmit}). */
    readonly onSubmitFileDecision: WorkflowFileDecisionSubmit;
    /** In-flight decision keys (pass `fileDecisionSubmittingKeys` straight through). */
    readonly submittingDecisionKeys?: ReadonlySet<string>;
    /** Per-decision failures (pass `fileDecisionErrorsByKey` straight through). */
    readonly decisionErrors?: ReadonlyMap<string, Error>;
    /**
     * Optional deep-link to open the child agent execution in its own view. When
     * provided, each child's review renders a "View agent execution" affordance.
     * Routing is the host's responsibility (DD-004).
     */
    readonly onNavigateToAgentExecution?: (agentExecutionId: string) => void;
    /** Additional CSS class names for the root container. */
    readonly className?: string;
}
/**
 * Renders the child agent file reviews surfaced on a parent WorkflowExecution.
 *
 * Reference-only, derive-from-child: the parent status carries only
 * {@link WorkflowPendingFileReview} references (child id + change set ids). This
 * list mounts one {@link WorkflowChildFileReview} per referenced child, which
 * streams that child's execution and reuses the agent-level {@link FileReviewCard}
 * to render the actual diff — the heavy content stays single-sourced on the child.
 * A decision is forwarded to the child via `WorkflowExecution.submitFileDecision`.
 *
 * This is the file-review sibling of the workflow tool-approval surface
 * (`WorkflowExecutionApprovalCard`). Empty `pendingFileReviews` renders nothing.
 */
export declare function WorkflowFileReviewList({ pendingFileReviews, onSubmitFileDecision, submittingDecisionKeys, decisionErrors, onNavigateToAgentExecution, className, }: WorkflowFileReviewListProps): React.ReactElement | null;
//# sourceMappingURL=WorkflowFileReviewList.d.ts.map