import type { RunMetricsReport } from "../../../costs.js";
import { type RunApiAvailability } from "../../../shared/run-api-status.js";
import type { AssetExtractResult } from "./extract.js";
export declare function outputExtractedAsset({ io, flags, hooks, url, sourceLabel, attachment, extracted, elapsedMs, report, costUsd, apiStatus, }: {
    io: {
        env: Record<string, string | undefined>;
        envForRun: Record<string, string | undefined>;
        stdout: NodeJS.WritableStream;
        stderr: NodeJS.WritableStream;
    };
    flags: {
        timeoutMs: number;
        preprocessMode: "off" | "auto" | "always";
        format: "text" | "markdown";
        plain: boolean;
        json: boolean;
        metricsEnabled: boolean;
        metricsDetailed: boolean;
        verboseColor: boolean;
    };
    hooks: {
        clearProgressForStdout: () => void;
        restoreProgressAfterStdout?: (() => void) | null;
    };
    url: string;
    sourceLabel: string;
    attachment: {
        mediaType: string;
        filename: string | null;
    };
    extracted: AssetExtractResult;
    elapsedMs: number;
    report: RunMetricsReport | null;
    costUsd: number | null;
    apiStatus: RunApiAvailability;
}): Promise<void>;
