import type { AttemptToolCatalog } from "@opengeni/contracts"; import type { Database } from "./database.js"; export declare class AttemptToolCatalogAuthorityError extends Error { readonly code = "attempt_tool_catalog_authority_mismatch"; constructor(); } export declare class AttemptToolCatalogConflictError extends Error { readonly code = "attempt_tool_catalog_conflict"; constructor(); } export declare function persistAttemptToolCatalog(db: Database, input: AttemptToolCatalog): Promise; export declare function getAttemptToolCatalog(db: Database, input: { accountId: string; workspaceId: string; attemptId: string; }): Promise; /** * Reads the verified catalog of one attempt, optionally only when it has the * exact digest. Same result as hydrating and verifying the stored row. */ export declare function loadVerifiedAttemptToolCatalogTx(tx: Pick, input: { workspaceId: string; attemptId: string; digest?: string; }): Promise;