/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as FernAI from "../../../index.js"; export declare namespace Feedback { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class Feedback { protected readonly _options: Feedback.Options; constructor(_options?: Feedback.Options); /** * @param {string} domain * @param {FernAI.CreateFeedbackRequest} request * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.feedback.createFeedback("domain", { * conversation_id: "conversation_id", * query_id: "query_id", * domain: "domain", * is_helpful: true * }) */ createFeedback(domain: string, request: FernAI.CreateFeedbackRequest, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise; private __createFeedback; /** * @param {string} domain * @param {string} conversationId * @param {Feedback.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.feedback.getFeedbackById("domain", "conversation_id") */ getFeedbackById(domain: string, conversationId: string, requestOptions?: Feedback.RequestOptions): core.HttpResponsePromise; private __getFeedbackById; protected _getAuthorizationHeader(): Promise; }