import { type ArtifactReceipt } from "../artifacts/detect.js"; export interface A2AToolResultSummary { tool: string; result: string; isError?: boolean; completedSideEffect?: boolean; artifacts?: ArtifactReceipt[]; } export interface A2AArtifactResponseOptions { baseUrl?: string; includeReferencedArtifacts?: boolean; includePersistedArtifactMarker?: boolean; persistedArtifactSecret?: string; delegatedTaskId?: string; } export interface GuardedA2AArtifactResponse { text: string; rejectedUnverifiedArtifactReferences: boolean; } export interface A2AArtifactIdentityOptions { persistedArtifactSecrets?: readonly string[]; expectedDelegatedTaskId?: string; baseUrl?: string; } export interface A2AArtifactIdentity { resourceType: "document" | "deck" | "dashboard" | "analysis" | "image" | "design" | "monitor" | "form"; id: string; sourceAction: string; titleAtAction?: string; url?: string; } export interface A2APersistedMutationReceipt { receiptId: string; sourceAction: string; operation: string; outcome: string; target: { authorityScopeKind: "personal" | "organization"; authorityScopeId: string; spaceId: string; databaseId: string; databaseDocumentId: string; itemId?: string; rowDocumentId?: string; propertyId?: string; }; row: { itemId?: string; documentId: string; urlPath: string; }; idempotency: { key: string; result: "applied" | "replayed"; payloadDigest: string; }; revisions: { before?: string | null; after?: string; rowBefore?: string; rowAfter?: string; fieldBefore?: number; fieldAfter?: number; }; affected?: { title?: boolean; propertyIds?: string[]; blockIds?: string[]; deletedBlockIds?: string[]; order?: string[]; }; readbackVerified: true; } export declare function stripA2APersistedArtifactMarkers(text: string): string; export declare function extractA2AArtifactIdentities(results: A2AToolResultSummary[], options?: A2AArtifactIdentityOptions): A2AArtifactIdentity[]; export declare function extractA2APersistedMutationReceipts(results: A2AToolResultSummary[], options?: A2AArtifactIdentityOptions): A2APersistedMutationReceipt[]; export declare function appendA2APersistedMutationReceipts(text: string, toolResults: A2AToolResultSummary[], options?: A2AArtifactResponseOptions): string; export declare function guardA2AArtifactResponse(responseText: string, toolResults: A2AToolResultSummary[], options?: A2AArtifactResponseOptions): GuardedA2AArtifactResponse; export declare function appendA2AArtifactLinks(responseText: string, toolResults: A2AToolResultSummary[], options?: A2AArtifactResponseOptions): string; export declare function buildA2ARecoverableArtifactMessage(toolResults: A2AToolResultSummary[], options?: A2AArtifactResponseOptions): string | null; export declare function buildA2AVerifiedMutationReceipt(toolResults: A2AToolResultSummary[], options?: A2AArtifactResponseOptions): string | null;