/** * useArtifactContent - Hook to fetch artifact content from GCS * * Used by expand:* code blocks to fetch and render artifact content inline. */ export interface ArtifactContentState { /** The fetched content, parsed if JSON */ data: T | undefined; /** Raw string content */ rawContent: string | undefined; /** Whether the content is currently being fetched */ isLoading: boolean; /** Error message if fetch failed */ error: string | undefined; /** Detected content type */ contentType: 'json' | 'text' | 'binary' | undefined; /** Retry the fetch */ retry: () => void; } export interface UseArtifactContentOptions { /** Workflow run ID for artifact path resolution */ runId: string | undefined; /** Artifact path (e.g., "direct/chart_123.json") */ path: string; /** Whether to auto-parse JSON content (default: true) */ parseJson?: boolean; } /** * Hook to fetch artifact content from GCS. * Handles caching, loading states, and error handling. * * @example * ```tsx * const { data, isLoading, error } = useArtifactContent({ * runId: artifactRunId, * path: 'direct/chart_123.json' * }); * ``` */ export declare function useArtifactContent({ runId, path, parseJson, }: UseArtifactContentOptions): ArtifactContentState; //# sourceMappingURL=useArtifactContent.d.ts.map