import { type ReactElement } from "react"; /** * Props for {@link DocsFeedback}. */ export interface DocsFeedbackProps { /** The prompt shown before the buttons (e.g. `"Was this page helpful?"`). */ question: string; /** Label for the affirmative button. Defaults to `"Yes"`. */ yesLabel?: string; /** Label for the negative button. Defaults to `"No"`. */ noLabel?: string; /** Confirmation shown after a vote. Defaults to `"Thanks for the feedback!"`. */ thanksLabel?: string; /** * Optional callback invoked once, with the reader's vote, when they answer. Use it to record * the signal (analytics, an API call); the widget itself only toggles its own thank-you state. */ onVote?: (vote: "yes" | "no") => void; } /** * The "Was this page helpful?" widget at the foot of a documentation page: a prompt and Yes/No * buttons that, once answered, highlight the chosen answer and reveal a thank-you note. A client * component (it holds the answered/voted state). * * Self-contained by design - it does not persist the vote anywhere. Pass `onVote` to record the * signal yourself (an analytics event, a `fetch` to your API); the widget calls it once, on the * first answer. * * @param props - see {@link DocsFeedbackProps}. * @returns the feedback row. */ export declare function DocsFeedback({ question, yesLabel, noLabel, thanksLabel, onVote, }: DocsFeedbackProps): ReactElement;