import type { LocalResponse } from '../../../local/entrypoint.js';
import type { CloudGenerateResult } from '../../../cloud/api/generate-endpoint.js';
import type { RickyMode } from '../cli/mode-selector.js';
import type { LocalPreflightResult } from './local-workflow-flow.js';
import type { CapturedWorkflowSpec } from './spec-intake-flow.js';
export interface WorkflowSummaryAgent {
    name: string;
    job: string;
}
export interface WorkflowSummary {
    artifactPath: string;
    goal: string;
    agents: WorkflowSummaryAgent[];
    jobs: string[];
    plan?: string[];
    desiredOutcome: string;
    sideEffects: string[];
    missingLocalBlockers: string[];
    command: string;
}
export declare function buildWorkflowSummary(input: {
    capture: CapturedWorkflowSpec;
    localResult?: LocalResponse;
    preflight: LocalPreflightResult;
    artifactPath?: string;
}): WorkflowSummary;
export declare function renderWorkflowSummary(summary: WorkflowSummary, _options?: unknown): string[];
export declare function localWorkflowSummary(localResult: LocalResponse, options?: {
    mode?: string;
    workflowName?: string;
    runRequested?: boolean;
    yes?: boolean;
    quiet?: boolean;
}): WorkflowSummary;
export declare function cloudWorkflowSummary(cloudResult: {
    artifacts: Array<{
        path: string;
    }>;
    warnings: Array<{
        severity: string;
        message: string;
    }>;
    followUpActions: Array<{
        label: string;
        description?: string;
    }>;
} | undefined, options?: {
    mode?: string;
    workflowName?: string;
    runRequested?: boolean;
    yes?: boolean;
    quiet?: boolean;
    guidance?: string[];
}): WorkflowSummary;
export declare function renderWorkflowJson(summary: WorkflowSummary): string;
export declare function cloudRecoveryActions(): string[];
export interface PowerUserWorkflowSummary {
    mode: RickyMode;
    workflowName?: string;
    workflowPath?: string;
    runId?: string;
    status?: string;
    evidencePath?: string;
    cloudUrl?: string;
    runCommand?: string;
    warnings: string[];
    nextActions: string[];
}
export interface PowerUserWorkflowSummaryOptions {
    mode: RickyMode;
    workflowName?: string;
    quiet?: boolean;
    yes?: boolean;
    runRequested?: boolean;
}
export declare function localPowerUserWorkflowSummary(localResult: LocalResponse, options: PowerUserWorkflowSummaryOptions): PowerUserWorkflowSummary;
export declare function cloudPowerUserWorkflowSummary(cloudResult: CloudGenerateResult | undefined, options: PowerUserWorkflowSummaryOptions & {
    guidance?: string[];
}): PowerUserWorkflowSummary;
export declare function renderPowerUserWorkflowSummary(summary: PowerUserWorkflowSummary, options: PowerUserWorkflowSummaryOptions): string[];
export declare function renderPowerUserWorkflowJson(summary: PowerUserWorkflowSummary): string;
export type CloudWorkflowSummaryAgent = 'claude' | 'codex' | 'opencode' | 'gemini';
export type CloudWorkflowSummaryIntegration = 'slack' | 'github' | 'notion' | 'linear';
export interface CloudWorkflowSummary {
    availableAgents: CloudWorkflowSummaryAgent[];
    connectedIntegrations: CloudWorkflowSummaryIntegration[];
    skippedIntegrations: CloudWorkflowSummaryIntegration[];
    relevantSkippedIntegrations: CloudWorkflowSummaryIntegration[];
    caveats: string[];
    lines: string[];
}
export declare function renderCloudWorkflowSummary(params: {
    readiness: {
        integrations: Record<CloudWorkflowSummaryIntegration, {
            connected: boolean;
        }>;
    };
    availableAgents: CloudWorkflowSummaryAgent[];
    selectedIntegrations: CloudWorkflowSummaryIntegration[];
    skippedIntegrations: CloudWorkflowSummaryIntegration[];
    relevantSkippedIntegrations: CloudWorkflowSummaryIntegration[];
}): CloudWorkflowSummary;
