import { ToolActionReview } from "@opengeni/contracts"; import { type Database } from "./database.js"; type ReviewScope = { accountId: string; workspaceId: string; sessionId: string; approvalId: string; }; /** * Whose own (Only me) login an action runs on, with their frozen name, or * null for workspace logins. It never changes once the action exists, so a * card rendered from it is the same on every retry. * * The caller must independently authorize this session. RLS remains active here. */ export declare function getToolActionAccountOwner(db: Database, input: ReviewScope): Promise<{ subjectId: string; label: string | null; } | null>; /** The HTTP/core caller must independently authorize this session. RLS remains active here. */ export declare function getToolActionReview(db: Database, input: ReviewScope & { /** * Who is looking. An action that runs on another person's own account * offers this viewer only Decline; omitted, the review is unpersonalized. */ viewerSubjectId?: string; }): Promise; export declare function getToolReviewDetailsPage(db: Database, input: ReviewScope & { actionDigest: string; path: string; offset: number; }): Promise<{ path: string; items: { label: string; value: string; detail?: string | undefined; path?: string | undefined; truncated?: boolean | undefined; }[]; total: number; nextOffset: number | null; version: 1; id: string; actionDigest: string; } | null>; export {};