/** * 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 Query { 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 Query { protected readonly _options: Query.Options; constructor(_options?: Query.Options); /** * @param {FernAI.CreateQueryRequest} request * @param {Query.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.query.createQuery({ * domain: "domain", * body: { * query_id: "query_id", * conversation_id: "conversation_id", * domain: "domain", * text: "text", * role: "role", * source: "source", * created_at: "2024-01-15T09:30:00Z" * } * }) */ createQuery(request: FernAI.CreateQueryRequest, requestOptions?: Query.RequestOptions): core.HttpResponsePromise; private __createQuery; /** * @param {string} domain * @param {FernAI.GetRecentQueriesRequest} request * @param {Query.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.query.getRecentQueries("domain", { * page: 1, * limit: 1, * cutoff_time: "2024-01-15T09:30:00Z", * include_assistant: true, * start_date: "2024-01-15T09:30:00Z", * end_date: "2024-01-15T09:30:00Z" * }) */ getRecentQueries(domain: string, request?: FernAI.GetRecentQueriesRequest, requestOptions?: Query.RequestOptions): core.HttpResponsePromise; private __getRecentQueries; protected _getAuthorizationHeader(): Promise; }