import { Logger } from 'pino';
import { PreprocessRequest, RequestMetadata } from '../../preprocess-request.js';
import { SearchAPIErrorWithStatusCode } from '../search-api-error-response.js';
import { HtmlRequest } from './html-request.js';
export interface HtmlApiClient {
    html: (req: HtmlRequest) => Promise<{
        success: string;
        error?: undefined;
    } | {
        error: SearchAPIErrorWithStatusCode;
        success?: undefined;
    }>;
}
export interface HtmlAPIClientOptions {
    logger: Logger;
    preprocessRequest: PreprocessRequest;
    requestMetadata?: RequestMetadata;
}
export declare const buildContentURL: (req: HtmlRequest, path: string) => string;
export declare const getHtml: (req: HtmlRequest, options: HtmlAPIClientOptions) => Promise<{
    success: string;
    error?: undefined;
} | {
    error: SearchAPIErrorWithStatusCode;
    success?: undefined;
}>;
