import { Logger } from 'pino';
import { AsyncThunkOptions } from '../../../app/async-thunk-options.js';
import { ClientThunkExtraArguments } from '../../../app/thunk-extra-arguments.js';
import { InsightAppState } from '../../../state/insight-app-state.js';
import { PreprocessRequest } from '../../preprocess-request.js';
import { HtmlAPIClientOptions } from '../../search/html/html-api-client.js';
import { HtmlRequest } from '../../search/html/html-request.js';
import { QuerySuggestSuccessResponse } from '../../search/query-suggest/query-suggest-response.js';
import { SearchOptions } from '../../search/search-api-client.js';
import { SearchResponseSuccess } from '../../search/search/search-response.js';
import { GetInsightInterfaceConfigRequest } from './get-interface/get-interface-config-request.js';
import { GetInsightInterfaceConfigResponse } from './get-interface/get-interface-config-response.js';
import { InsightQuerySuggestRequest } from './query-suggest/query-suggest-request.js';
import { InsightQueryRequest } from './query/query-request.js';
import { InsightUserActionsRequest } from './user-actions/user-actions-request.js';
import { InsightUserActionsResponse } from './user-actions/user-actions-response.js';
/**
 * Initialization options for the `InsightAPIClient`.
 */
export interface InsightAPIClientOptions extends HtmlAPIClientOptions {
    logger: Logger;
    preprocessRequest: PreprocessRequest;
}
export interface AsyncThunkInsightOptions<T extends Partial<InsightAppState>> extends AsyncThunkOptions<T, ClientThunkExtraArguments<InsightAPIClient>> {
    rejectValue: InsightAPIErrorStatusResponse;
}
export type InsightAPIResponse<TSuccessContent> = InsightAPISuccessResponse<TSuccessContent> | InsightAPIErrorResponse;
export interface InsightAPISuccessResponse<TContent> {
    success: TContent;
}
export interface InsightAPIErrorStatusResponse {
    statusCode: number;
    message: string;
    type: string;
    ignored?: boolean;
}
export interface InsightAPIErrorResponse {
    error: InsightAPIErrorStatusResponse;
}
/**
 * The client to use to interact with the Insight API.
 */
export declare class InsightAPIClient {
    private options;
    constructor(options: InsightAPIClientOptions);
    getInterface(req: GetInsightInterfaceConfigRequest): Promise<InsightAPIResponse<GetInsightInterfaceConfigResponse>>;
    query(req: InsightQueryRequest, options?: SearchOptions): Promise<InsightAPIResponse<SearchResponseSuccess>>;
    querySuggest(req: InsightQuerySuggestRequest): Promise<InsightAPIResponse<QuerySuggestSuccessResponse>>;
    userActions(req: InsightUserActionsRequest): Promise<InsightAPIResponse<InsightUserActionsResponse>>;
    html(req: HtmlRequest): Promise<{
        success: string;
        error?: undefined;
    } | {
        error: import("../../search/search-api-error-response.js").SearchAPIErrorWithStatusCode;
        success?: undefined;
    }>;
}
