import type { HumanInputSecretAnswerResult } from "@opengeni/sdk"; import { type ReactNode } from "react"; import { type SecretReferenceLike, type SecretsUi } from "../secrets-ui.js"; export { secretReferenceLabel, secretReferenceLabelText, type SecretReferenceLabel, } from "../secret-reference-label.js"; export type SecretRefChipProps = { reference: SecretReferenceLike; /** Link to the item when the host provides `hrefForReference`. Off inside other controls. */ linkable?: boolean | undefined; className?: string | undefined; }; /** One secret reference as a chip. Focusable only when it links. */ export declare function SecretRefChip({ reference, linkable, className }: SecretRefChipProps): import("react").JSX.Element; export type SecretRefTextProps = { text: string; linkable?: boolean | undefined; chipClassName?: string | undefined; }; /** * Text with each valid secret reference as a chip. Malformed reference-like * text stays plain, and without a `SecretsUiProvider` the text is unchanged. */ export declare function SecretRefText({ text, linkable, chipClassName }: SecretRefTextProps): import("react").JSX.Element; /** Fast path: only text that mentions a reference is tokenized. */ export declare function mayContainSecretReference(text: string): boolean; export declare function renderSecretRefText(ui: SecretsUi | null, text: string, options?: { linkable?: boolean | undefined; chipClassName?: string | undefined; }): ReactNode; export type SecretAnswerChipProps = { result: HumanInputSecretAnswerResult; label: string; className?: string | undefined; }; /** The answered ask card: "Saved to Private › GitHub", plus the username. Never a value. */ export declare function SecretAnswerChip({ result, label, className }: SecretAnswerChipProps): import("react").JSX.Element;