import type { AIUIHost } from './AIUIHost'; /** Whether `value` is a JSON object, rather than an array, `null` or a scalar. */ export declare const isRecord: (value: unknown) => value is Record; /** * The type an app's component is placed by in a format's UI, such as `PlaceCard` for * `place_card`: named as A2UI's and OpenUI's own components are. */ export declare const aiUITypeName: (name: string) => string; /** * A name as words, such as "Submit form" for `submit_form` or `submitForm`: what the person's * message says when what they used has no words of its own. */ export declare const aiUIWords: (name: string) => string; /** * `value` without the person's secrets, such as a password they typed: each string that holds * one has it taken out, wherever it is, so none reaches the agent or what is kept. */ export declare const withoutSecretValues: (value: T, secrets: readonly string[]) => T; /** `text` as a sentence, ending in a full stop unless it ends otherwise. */ export declare const aiUISentence: (text: string) => string; type ClickEvent = { /** Which button was pressed: 0 the main one, 1 the middle one, 2 the one for a menu. */ button?: number; preventDefault: () => void; stopPropagation: () => void; target: EventTarget | null; type?: string; }; /** * A click handler that opens the links of a reply's UI the way `host` allows, rather than * wherever they point, since the agent writes them. Give it to the element around them as its * capturing click and auxclick handler: of the other buttons, only the middle one opens a link, * and the one for a menu shows the menu. */ export declare const aiUILinkOpener: (host: AIUIHost | undefined) => (event: ClickEvent) => void; export {}; //# sourceMappingURL=AIUIHelpers.d.ts.map