import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js"; import { IHoverService } from "../../../../../platform/hover/browser/hover.service.js"; import { IChatResponseViewModel } from "../../common/model/chatViewModel.js"; import { IChatModelFeedbackSurveyService } from "./chatModelFeedbackSurveyService.service.js"; /** * The inline survey shown beneath a chat response footer. * * It renders below the footer toolbar so opening it never moves the footer icons. All durable * state lives in the survey service, since chat rows are virtualized and recycle this widget. */ export declare class ChatModelFeedbackSurveyWidget extends Disposable { private readonly container; /** Returns focus to whatever opened the survey once its controls are torn down. */ private readonly restoreFocus; private readonly surveyService; private readonly hoverService; private readonly renderDisposables; private response; private readonly hasSurveyContextKey; private readonly surveyOpenContextKey; /** Step focus was last moved to, so an unrelated re-render does not move it again. */ private lastFocusedStep; private isPanelOpen; /** Guards against `render` being re-entered when reading state changes that state. */ private isRendering; constructor(container: HTMLElement, /** Returns focus to whatever opened the survey once its controls are torn down. */ restoreFocus: () => void, surveyService: IChatModelFeedbackSurveyService, hoverService: IHoverService, contextKeyService: IContextKeyService); /** Renders the survey for `response`, or clears the panel when there is nothing to show. */ render(response: IChatResponseViewModel | undefined): void; private doRender; private renderPanel; private renderCloseButton; /** Renders the options as a single select list, matching the ask question tool. */ private renderChoiceStep; private renderTextStep; private dismiss; }