import type { ArtifactCatalogItem } from "@opengeni/sdk"; import type { OpenGeniBrowserClient } from "@opengeni/sdk/browser"; import type { SessionEditableArtifactSummary } from "../components/session/editable-artifacts-workspace.js"; type DiscoveryClient = Pick; /** * The session dock and workspace library discover the same durable resources. * Work a sub-agent publishes belongs to the chat that delegated it, so one * catalog read covers the chat and every sub-session its lineage lists: a * refresh costs two paged reads (active, then archived) however many * sub-agents the chat started. The server returns each status in catalog * order (pinned first, then most recently updated). */ export declare function discoverSessionArtifacts(workspaceId: string, sessionId: string, current: () => boolean, client: DiscoveryClient): Promise<((_previous: readonly SessionEditableArtifactSummary[]) => { status: "ready"; artifacts: Readonly<{ id: string; modality: "document" | "spreadsheet" | "presentation" | "site" | "image" | "file"; title: string; versionId?: string | undefined; siteStatus?: "active" | "archived" | undefined; catalogItem?: ArtifactCatalogItem | undefined; }>[]; }) | ((previous: readonly SessionEditableArtifactSummary[]) => { status: "error"; artifacts: readonly Readonly<{ id: string; modality: "document" | "spreadsheet" | "presentation" | "site" | "image" | "file"; title: string; versionId?: string | undefined; siteStatus?: "active" | "archived" | undefined; catalogItem?: ArtifactCatalogItem | undefined; }>[]; })>; export {};