import type { OpenGeniText } from "./messages/runtime.js"; import type { AuthNeededItem } from "./timeline/types.js"; export type AuthNeededPresentation = { /** A calm human name: the agent's capability name or the provider's. */ provider: string; title: string; /** Why the row is here, or the agent's reason for asking. */ reasonLine: string; /** The button's words: Connect, Review or Reconnect (only for a lapsed connection). */ actionLabel: string; /** "Provider: example.com" under an agent's request, otherwise null. */ providerLine: string | null; /** The variables an agent's request needs, otherwise null. */ variablesLine: string | null; /** What happens next, or null when the tools are unavailable anyway. */ footnote: string | null; /** The tools cannot run here at all; no action is offered. */ unavailable: boolean; /** A first-time connection rather than a lapsed one. */ missing: boolean; /** A pre-minted link the host or server provides, when one may be offered. */ authorizationUrl: string | null; /** Whether the row's own action may start recovery (never for host-managed or unavailable). */ canRecover: boolean; /** "Couldn't start connecting Provider. Try again." after a failed start. */ startFailed: string; }; /** * Present one auth notice. `setupUnavailable`: this person cannot set an * agent's request up from here, so say so instead of offering a review. */ export declare function authNeededPresentation(t: OpenGeniText, item: AuthNeededItem, options?: { setupUnavailable?: boolean | undefined; }): AuthNeededPresentation; /** "linear.app" -> "Linear": the first domain label, capitalized. A calm human name for the provider — never the raw domain shown as a label. */ export declare function providerLabel(t: OpenGeniText, domain: string): string; /** A calm, human helper line per reauth reason — the `reason` informs the copy but is never rendered as a raw enum/code. */ export declare function authReasonLine(t: OpenGeniText, reason: AuthNeededItem["reason"]): string;