import { type TaskResearchResult } from '@xopcai/gateway-contract'; /** Inspect latest publications, not the worker's assertion that its files still exist. */ export declare function inspectTaskPublications(runId: string, research?: TaskResearchResult): { missing: string[]; unreviewed: string[]; latestPublishedArtifacts: { artifactId: string; title: string; kind: "file" | "document" | "presentation" | "spreadsheet" | "pdf" | "image" | "video" | "audio" | "site" | "archive"; availability: "expired" | "failed" | "materializing" | "available" | "missing"; location: "workspace" | "external_host" | "worktree" | "remote_runtime" | "artifact_store"; capabilities: ("open" | "preview" | "share" | "download" | "import" | "regenerate")[]; sourceFileId?: string | undefined; mimeType?: string | undefined; sha256?: string | undefined; sizeBytes?: number | undefined; uri?: string | undefined; workspaceRelativePath?: string | undefined; shareUrl?: string | undefined; thumbnailUrl?: string | undefined; expiresAt?: string | undefined; }[]; artifactIds: string[]; }; export declare function buildResearchRepair(input: { research?: TaskResearchResult; stale: boolean; instructionSequence: number; publications: Pick, 'missing' | 'unreviewed' | 'artifactIds'>; criteria: string[]; resultFingerprint?: string; requiresReview?: boolean; requiresFinalText?: boolean; publicationStructureGap?: string; }): { gaps: string[]; fingerprint: string; message: string; } | undefined;