/** * Copyright (c) 2026-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { type SHOWCASE_FEEDBACK_SURFACE } from '../../__lib__/LegendStudioTelemetryHelper.js'; /** * "Was this showcase helpful?" widget. * * v1 storage strategy: telemetry is the source of truth for aggregate * analysis (`showcase.viewer.feedback.submit`). The user's vote per * showcase is cached in browser `UserDataService` (localStorage) purely * so we can suppress re-prompting on revisit — there is no backend today. * * UX: once a user votes, the buttons are replaced with a brief * "Thanks for the feedback!" message and then the whole widget unmounts. * On subsequent visits to the same showcase, the widget renders nothing. */ export declare const ShowcaseFeedback: (props: { showcasePath: string; title?: string | undefined; surface: SHOWCASE_FEEDBACK_SURFACE; /** Optional CSS class hook so the two mount points can size / align. */ className?: string | undefined; }) => import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=ShowcaseFeedback.d.ts.map