//#region src/domains/run/artifacts/artifact-utils.d.ts
/**
 * Artifact metadata returned from saveToolResultsAsArtifacts
 */
interface CompressedArtifactInfo {
  artifactId: string;
  isOversized: boolean;
  originalTokenSize?: number;
  contextWindowSize?: number;
  toolArgs?: Record<string, unknown>;
  structureInfo?: string;
  oversizedWarning?: string;
  summaryData?: Record<string, any>;
  name?: string;
  description?: string;
}
/**
 * Generate human-readable structure information for data
 */
declare function generateStructureInfo(data: any): string;
/**
 * Formats the retrieval-blocked reason string for an oversized artifact.
 */
declare function formatOversizedRetrievalReason(originalTokenSize: number, contextWindowSize: number): string;
interface OversizedDetectionResult {
  isOversized: boolean;
  originalTokenSize: number;
  contextWindowSize?: number;
  retrievalBlocked: boolean;
  oversizedWarning?: string;
  structureInfo?: string;
}
/**
 * Detect if artifact data is oversized (>30% of context window)
 * Returns metadata for artifact saving
 */
declare function detectOversizedArtifact(data: any, contextWindowSize?: number, context?: {
  artifactId?: string;
  toolCallId?: string;
  toolName?: string;
}): OversizedDetectionResult;
//#endregion
export { CompressedArtifactInfo, OversizedDetectionResult, detectOversizedArtifact, formatOversizedRetrievalReason, generateStructureInfo };