/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleServerStreamingCall, Client, CallOptions, ClientReadableStream, Metadata, handleUnaryCall, ClientUnaryCall, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { TextAnnotation } from '../../../../../yandex/cloud/ai/ocr/v1/ocr';
import { Operation } from '../../../../../yandex/cloud/operation/operation';
export declare const protobufPackage = "yandex.cloud.ai.ocr.v1";
export interface RecognizeTextRequest {
    /** Bytes with data */
    content: Buffer | undefined;
    /**
     * Specifications of the ([MIME type](https://en.wikipedia.org/wiki/Media_type)). Each specification contains the file to analyze and features to use for analysis. Restrictions:
     * * Supported file formats: `JPEG`, `PNG`, `PDF`.
     * * Maximum file size: see [documentation](/docs/vision/concepts/limits).
     * * Image size should not exceed 20M pixels (length x width).
     * * The number of pages in a PDF file should not exceed 1.
     */
    mimeType: string;
    /**
     * [List of the languages](/docs/vision/concepts/ocr/supported-languages) to recognize text.
     * Specified in [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) format (for example, `ru`).
     */
    languageCodes: string[];
    /** [Model](/docs/vision/concepts/ocr/template-recognition#models) to use for text detection. */
    model: string;
}
export interface RecognizeTextResponse {
    /** Recognized text blocks in page or text from entities. */
    textAnnotation?: TextAnnotation;
    /** Page number in PDF file. */
    page: number;
}
export interface GetRecognitionRequest {
    /** Operation ID of async recognition request. */
    operationId: string;
}
export declare const RecognizeTextRequest: {
    encode(message: RecognizeTextRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): RecognizeTextRequest;
    fromJSON(object: any): RecognizeTextRequest;
    toJSON(message: RecognizeTextRequest): unknown;
    fromPartial<I extends {
        content?: Buffer | undefined;
        mimeType?: string | undefined;
        languageCodes?: string[] | undefined;
        model?: string | undefined;
    } & {
        content?: Buffer | undefined;
        mimeType?: string | undefined;
        languageCodes?: (string[] & string[] & Record<Exclude<keyof I["languageCodes"], keyof string[]>, never>) | undefined;
        model?: string | undefined;
    } & Record<Exclude<keyof I, keyof RecognizeTextRequest>, never>>(object: I): RecognizeTextRequest;
};
export declare const RecognizeTextResponse: {
    encode(message: RecognizeTextResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): RecognizeTextResponse;
    fromJSON(object: any): RecognizeTextResponse;
    toJSON(message: RecognizeTextResponse): unknown;
    fromPartial<I extends {
        textAnnotation?: {
            width?: number | undefined;
            height?: number | undefined;
            blocks?: {
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                lines?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                }[] | undefined;
                languages?: {
                    languageCode?: string | undefined;
                }[] | undefined;
                textSegments?: {
                    startIndex?: number | undefined;
                    length?: number | undefined;
                }[] | undefined;
            }[] | undefined;
            entities?: {
                name?: string | undefined;
                text?: string | undefined;
            }[] | undefined;
            tables?: {
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                rowCount?: number | undefined;
                columnCount?: number | undefined;
                cells?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                }[] | undefined;
            }[] | undefined;
            fullText?: string | undefined;
            rotate?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
        } | undefined;
        page?: number | undefined;
    } & {
        textAnnotation?: ({
            width?: number | undefined;
            height?: number | undefined;
            blocks?: {
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                lines?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                }[] | undefined;
                languages?: {
                    languageCode?: string | undefined;
                }[] | undefined;
                textSegments?: {
                    startIndex?: number | undefined;
                    length?: number | undefined;
                }[] | undefined;
            }[] | undefined;
            entities?: {
                name?: string | undefined;
                text?: string | undefined;
            }[] | undefined;
            tables?: {
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                rowCount?: number | undefined;
                columnCount?: number | undefined;
                cells?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                }[] | undefined;
            }[] | undefined;
            fullText?: string | undefined;
            rotate?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
        } & {
            width?: number | undefined;
            height?: number | undefined;
            blocks?: ({
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                lines?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                }[] | undefined;
                languages?: {
                    languageCode?: string | undefined;
                }[] | undefined;
                textSegments?: {
                    startIndex?: number | undefined;
                    length?: number | undefined;
                }[] | undefined;
            }[] & ({
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                lines?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                }[] | undefined;
                languages?: {
                    languageCode?: string | undefined;
                }[] | undefined;
                textSegments?: {
                    startIndex?: number | undefined;
                    length?: number | undefined;
                }[] | undefined;
            } & {
                boundingBox?: ({
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } & {
                    vertices?: ({
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] & ({
                        x?: number | undefined;
                        y?: number | undefined;
                    } & {
                        x?: number | undefined;
                        y?: number | undefined;
                    } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["boundingBox"]["vertices"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Vertex>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["boundingBox"]["vertices"], keyof {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[]>, never>) | undefined;
                } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["boundingBox"], "vertices">, never>) | undefined;
                lines?: ({
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                }[] & ({
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                } & {
                    boundingBox?: ({
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } & {
                        vertices?: ({
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] & ({
                            x?: number | undefined;
                            y?: number | undefined;
                        } & {
                            x?: number | undefined;
                            y?: number | undefined;
                        } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["boundingBox"]["vertices"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Vertex>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["boundingBox"]["vertices"], keyof {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[]>, never>) | undefined;
                    } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["boundingBox"], "vertices">, never>) | undefined;
                    text?: string | undefined;
                    words?: ({
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] & ({
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    } & {
                        boundingBox?: ({
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } & {
                            vertices?: ({
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] & ({
                                x?: number | undefined;
                                y?: number | undefined;
                            } & {
                                x?: number | undefined;
                                y?: number | undefined;
                            } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["words"][number]["boundingBox"]["vertices"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Vertex>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["words"][number]["boundingBox"]["vertices"], keyof {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[]>, never>) | undefined;
                        } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["words"][number]["boundingBox"], "vertices">, never>) | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: ({
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] & ({
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        } & {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["words"][number]["textSegments"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").TextSegments>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["words"][number]["textSegments"], keyof {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[]>, never>) | undefined;
                    } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["words"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Word>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["words"], keyof {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[]>, never>) | undefined;
                    textSegments?: ({
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] & ({
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    } & {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["textSegments"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").TextSegments>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number]["textSegments"], keyof {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[]>, never>) | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Line>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["lines"], keyof {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                }[]>, never>) | undefined;
                languages?: ({
                    languageCode?: string | undefined;
                }[] & ({
                    languageCode?: string | undefined;
                } & {
                    languageCode?: string | undefined;
                } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["languages"][number], "languageCode">, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["languages"], keyof {
                    languageCode?: string | undefined;
                }[]>, never>) | undefined;
                textSegments?: ({
                    startIndex?: number | undefined;
                    length?: number | undefined;
                }[] & ({
                    startIndex?: number | undefined;
                    length?: number | undefined;
                } & {
                    startIndex?: number | undefined;
                    length?: number | undefined;
                } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["textSegments"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").TextSegments>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"][number]["textSegments"], keyof {
                    startIndex?: number | undefined;
                    length?: number | undefined;
                }[]>, never>) | undefined;
            } & Record<Exclude<keyof I["textAnnotation"]["blocks"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Block>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["blocks"], keyof {
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                lines?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    text?: string | undefined;
                    words?: {
                        boundingBox?: {
                            vertices?: {
                                x?: number | undefined;
                                y?: number | undefined;
                            }[] | undefined;
                        } | undefined;
                        text?: string | undefined;
                        entityIndex?: number | undefined;
                        textSegments?: {
                            startIndex?: number | undefined;
                            length?: number | undefined;
                        }[] | undefined;
                    }[] | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                    orientation?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
                }[] | undefined;
                languages?: {
                    languageCode?: string | undefined;
                }[] | undefined;
                textSegments?: {
                    startIndex?: number | undefined;
                    length?: number | undefined;
                }[] | undefined;
            }[]>, never>) | undefined;
            entities?: ({
                name?: string | undefined;
                text?: string | undefined;
            }[] & ({
                name?: string | undefined;
                text?: string | undefined;
            } & {
                name?: string | undefined;
                text?: string | undefined;
            } & Record<Exclude<keyof I["textAnnotation"]["entities"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Entity>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["entities"], keyof {
                name?: string | undefined;
                text?: string | undefined;
            }[]>, never>) | undefined;
            tables?: ({
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                rowCount?: number | undefined;
                columnCount?: number | undefined;
                cells?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                }[] | undefined;
            }[] & ({
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                rowCount?: number | undefined;
                columnCount?: number | undefined;
                cells?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                }[] | undefined;
            } & {
                boundingBox?: ({
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } & {
                    vertices?: ({
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] & ({
                        x?: number | undefined;
                        y?: number | undefined;
                    } & {
                        x?: number | undefined;
                        y?: number | undefined;
                    } & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["boundingBox"]["vertices"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Vertex>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["boundingBox"]["vertices"], keyof {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[]>, never>) | undefined;
                } & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["boundingBox"], "vertices">, never>) | undefined;
                rowCount?: number | undefined;
                columnCount?: number | undefined;
                cells?: ({
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                }[] & ({
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                } & {
                    boundingBox?: ({
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } & {
                        vertices?: ({
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] & ({
                            x?: number | undefined;
                            y?: number | undefined;
                        } & {
                            x?: number | undefined;
                            y?: number | undefined;
                        } & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["cells"][number]["boundingBox"]["vertices"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Vertex>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["cells"][number]["boundingBox"]["vertices"], keyof {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[]>, never>) | undefined;
                    } & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["cells"][number]["boundingBox"], "vertices">, never>) | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: ({
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] & ({
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    } & {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    } & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["cells"][number]["textSegments"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").TextSegments>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["cells"][number]["textSegments"], keyof {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[]>, never>) | undefined;
                } & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["cells"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").TableCell>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["tables"][number]["cells"], keyof {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                }[]>, never>) | undefined;
            } & Record<Exclude<keyof I["textAnnotation"]["tables"][number], keyof import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Table>, never>)[] & Record<Exclude<keyof I["textAnnotation"]["tables"], keyof {
                boundingBox?: {
                    vertices?: {
                        x?: number | undefined;
                        y?: number | undefined;
                    }[] | undefined;
                } | undefined;
                rowCount?: number | undefined;
                columnCount?: number | undefined;
                cells?: {
                    boundingBox?: {
                        vertices?: {
                            x?: number | undefined;
                            y?: number | undefined;
                        }[] | undefined;
                    } | undefined;
                    rowIndex?: number | undefined;
                    columnIndex?: number | undefined;
                    columnSpan?: number | undefined;
                    rowSpan?: number | undefined;
                    text?: string | undefined;
                    textSegments?: {
                        startIndex?: number | undefined;
                        length?: number | undefined;
                    }[] | undefined;
                }[] | undefined;
            }[]>, never>) | undefined;
            fullText?: string | undefined;
            rotate?: import("../../../../../yandex/cloud/ai/ocr/v1/ocr").Angle | undefined;
        } & Record<Exclude<keyof I["textAnnotation"], keyof TextAnnotation>, never>) | undefined;
        page?: number | undefined;
    } & Record<Exclude<keyof I, keyof RecognizeTextResponse>, never>>(object: I): RecognizeTextResponse;
};
export declare const GetRecognitionRequest: {
    encode(message: GetRecognitionRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetRecognitionRequest;
    fromJSON(object: any): GetRecognitionRequest;
    toJSON(message: GetRecognitionRequest): unknown;
    fromPartial<I extends {
        operationId?: string | undefined;
    } & {
        operationId?: string | undefined;
    } & Record<Exclude<keyof I, "operationId">, never>>(object: I): GetRecognitionRequest;
};
/** A set of methods for the Vision OCR service. */
export declare const TextRecognitionServiceService: {
    /** To send the image for text recognition. */
    readonly recognize: {
        readonly path: "/yandex.cloud.ai.ocr.v1.TextRecognitionService/Recognize";
        readonly requestStream: false;
        readonly responseStream: true;
        readonly requestSerialize: (value: RecognizeTextRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => RecognizeTextRequest;
        readonly responseSerialize: (value: RecognizeTextResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => RecognizeTextResponse;
    };
};
export interface TextRecognitionServiceServer extends UntypedServiceImplementation {
    /** To send the image for text recognition. */
    recognize: handleServerStreamingCall<RecognizeTextRequest, RecognizeTextResponse>;
}
export interface TextRecognitionServiceClient extends Client {
    /** To send the image for text recognition. */
    recognize(request: RecognizeTextRequest, options?: Partial<CallOptions>): ClientReadableStream<RecognizeTextResponse>;
    recognize(request: RecognizeTextRequest, metadata?: Metadata, options?: Partial<CallOptions>): ClientReadableStream<RecognizeTextResponse>;
}
export declare const TextRecognitionServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): TextRecognitionServiceClient;
    service: typeof TextRecognitionServiceService;
};
/** A set of methods for managing operations for asynchronous API requests. */
export declare const TextRecognitionAsyncServiceService: {
    /** To send the image for asynchronous text recognition. */
    readonly recognize: {
        readonly path: "/yandex.cloud.ai.ocr.v1.TextRecognitionAsyncService/Recognize";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: RecognizeTextRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => RecognizeTextRequest;
        readonly responseSerialize: (value: Operation) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Operation;
    };
    /** To get recognition results. */
    readonly getRecognition: {
        readonly path: "/yandex.cloud.ai.ocr.v1.TextRecognitionAsyncService/GetRecognition";
        readonly requestStream: false;
        readonly responseStream: true;
        readonly requestSerialize: (value: GetRecognitionRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetRecognitionRequest;
        readonly responseSerialize: (value: RecognizeTextResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => RecognizeTextResponse;
    };
};
export interface TextRecognitionAsyncServiceServer extends UntypedServiceImplementation {
    /** To send the image for asynchronous text recognition. */
    recognize: handleUnaryCall<RecognizeTextRequest, Operation>;
    /** To get recognition results. */
    getRecognition: handleServerStreamingCall<GetRecognitionRequest, RecognizeTextResponse>;
}
export interface TextRecognitionAsyncServiceClient extends Client {
    /** To send the image for asynchronous text recognition. */
    recognize(request: RecognizeTextRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    recognize(request: RecognizeTextRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    recognize(request: RecognizeTextRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    /** To get recognition results. */
    getRecognition(request: GetRecognitionRequest, options?: Partial<CallOptions>): ClientReadableStream<RecognizeTextResponse>;
    getRecognition(request: GetRecognitionRequest, metadata?: Metadata, options?: Partial<CallOptions>): ClientReadableStream<RecognizeTextResponse>;
}
export declare const TextRecognitionAsyncServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): TextRecognitionAsyncServiceClient;
    service: typeof TextRecognitionAsyncServiceService;
};
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 {};
