import { type AppActionTargets } from "@opengeni/contracts/app-actions"; import { type Database } from "./database.js"; /** * What an app action changes, read from Opengeni's own records when its * approval is prepared, so the card can name it ("Remove the Gmail connection * for anna@example.com?"). Only ids from the call's path are looked up, only * in the chat's own organization, and as the person the chat acts for: what * they can't see stays unresolved, never someone else's name, and "not found" * follows only a lookup that sees what they see. Nothing * the agent wrote becomes a name. A lookup that fails leaves the id * unresolved, so the card keeps its plain wording instead of guessing. */ export declare function resolveAppActionTargets(db: Database, scope: { accountId: string; /** The chat's workspace, where the person is known to act. */ workspaceId: string; /** The person the chat acts for; nothing is read without one. */ subjectId: string | null; /** Told about a lookup that failed; its id stays unresolved. */ onLookupError?: (error: unknown, parameter: string) => void; /** How long one lookup may take before the card asks without it. */ timeoutMs?: number; }, args: unknown): Promise; /** "14 Oct 2026", in UTC. */ export declare function targetDay(value: Date | string | null | undefined): string | undefined; /** "14 Oct 2026, 07:41 UTC". */ export declare function targetMoment(value: Date | string | null | undefined): string | undefined; type Fact = { label: string; value: string; }; /** "Mondays at 08:00 (Europe/Oslo)", "Every 2 hours", "Only when started". */ export declare function scheduleSummary(schedule: unknown): string | undefined; /** The lookup for one path id, or undefined when its route has none. */ export declare function appActionTargetLookupKey(path: string, parameter: string): string | undefined; /** * The wording an app action's approval was first saved with, so a resumed * attempt asks it the same way instead of reading its targets again (the * saved review keeps its first context). */ export declare function savedAppActionApprovalCard(db: Database, input: { accountId: string; workspaceId: string; sessionId: string; turnId: string; approvalId: string; }): Promise<{ title: string; targetFacts: Fact[]; } | undefined>; export {};