import { Response } from 'node-fetch'; import createHttpError from 'http-errors'; import { RawResponse, TranslateOptions } from './types.js'; declare const defaults: Required>; export declare function translate(inputText: string, options?: TranslateOptions): Promise<{ text: string; raw: RawResponse; }>; export declare class Translator { protected inputText: string; protected options: typeof defaults & TranslateOptions; constructor(inputText: string, options?: TranslateOptions); translate(): Promise<{ text: string; raw: RawResponse; }>; protected buildUrl(): string; protected buildBody(): string; protected buildFetchOptions(): Partial; protected buildResText({ sentences }: RawResponse): string; protected buildError(res: Response): Promise>; } export {}; //# sourceMappingURL=index.d.ts.map