import { type ToolGatewayIdentity, type WorkspaceArtifactSourceBundle as WorkspaceArtifactSourceBundleValue, type WorkspaceArtifactVersion } from "@opengeni/contracts"; import type { ObjectStorageDependency } from "@opengeni/core"; export type PreparedWorkspaceArtifactContent = { contentKey: string; contentSha256: null; sizeBytes: number; sourceKey: string | null; sourceSha256: null; sourceSizeBytes: number | null; requestedTools?: ToolGatewayIdentity[]; persistContent: () => Promise; discardContent: () => Promise; }; export declare function prepareWorkspaceArtifactContent(objectStorage: NonNullable, workspaceId: string, input: { html: string; source?: WorkspaceArtifactSourceBundleValue; requestedTools?: ToolGatewayIdentity[]; }): PreparedWorkspaceArtifactContent; export declare function readWorkspaceArtifactContent(objectStorage: NonNullable, input: { contentKey: string; sourceKey: string | null; version: WorkspaceArtifactVersion; }): Promise<{ html: string; source: WorkspaceArtifactSourceBundleValue; requestedTools: ToolGatewayIdentity[]; }>; export declare function sourceBundleFromHtml(html: string): WorkspaceArtifactSourceBundleValue;