import type { RunSummary, RunView } from '../../workflows/v3/ops-projection.js'; import type { V3RunStatus } from '../../workflows/v3/state.js'; export type V3Fetch = (input: string, init?: RequestInit) => Promise; export interface V3RunDetailOk { ok: true; view: RunView; } export interface V3RunDetailErr { ok: false; status: number; } export type V3RunDetailResult = V3RunDetailOk | V3RunDetailErr; export type V3RunCancelResult = { ok: true; runId?: string; runStatus?: V3RunStatus; alreadyTerminal?: boolean; } | { ok: false; status: number; error: string; }; export declare function fetchV3Runs(fetcher?: V3Fetch): Promise; export declare function fetchV3RunDetail(runId: string, fetcher?: V3Fetch): Promise; export declare function cancelV3Run(runId: string, fetcher?: V3Fetch): Promise; //# sourceMappingURL=v3-api.d.ts.map