import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.ai.translate.v2";
export interface TranslatedText {
    /** Translated text. */
    text: string;
    /**
     * The language code of the source text.
     * Most languages are specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` ru ``), but the field are not limited to it.
     */
    detectedLanguageCode: string;
}
export interface Language {
    /**
     * The language code.
     * Most languages are specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `` ru ``), but the field are not limited to it.
     */
    code: string;
    /** The name of the language (for example, `` English ``). */
    name: string;
}
export declare const TranslatedText: {
    encode(message: TranslatedText, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): TranslatedText;
    fromJSON(object: any): TranslatedText;
    toJSON(message: TranslatedText): unknown;
    fromPartial<I extends {
        text?: string | undefined;
        detectedLanguageCode?: string | undefined;
    } & {
        text?: string | undefined;
        detectedLanguageCode?: string | undefined;
    } & Record<Exclude<keyof I, keyof TranslatedText>, never>>(object: I): TranslatedText;
};
export declare const Language: {
    encode(message: Language, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Language;
    fromJSON(object: any): Language;
    toJSON(message: Language): unknown;
    fromPartial<I extends {
        code?: string | undefined;
        name?: string | undefined;
    } & {
        code?: string | undefined;
        name?: string | undefined;
    } & Record<Exclude<keyof I, keyof Language>, never>>(object: I): Language;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
    [K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
export {};
