/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { SearchQuery } from '../../../../yandex/cloud/searchapi/v2/search_query'; export declare const protobufPackage = "yandex.cloud.searchapi.v2"; export interface ImageSpec { /** Searching for images in a particular format. */ format: ImageSpec_ImageFormat; /** Searching for images of a particular size. */ size: ImageSpec_ImageSize; /** Searching for images with a particular orientation. */ orientation: ImageSpec_ImageOrientation; /** Searching for images containing a particular color. */ color: ImageSpec_ImageColor; } export declare enum ImageSpec_ImageFormat { IMAGE_FORMAT_UNSPECIFIED = 0, /** IMAGE_FORMAT_JPEG - JPG format. */ IMAGE_FORMAT_JPEG = 1, /** IMAGE_FORMAT_GIF - GIF format. */ IMAGE_FORMAT_GIF = 2, /** IMAGE_FORMAT_PNG - PNG format. */ IMAGE_FORMAT_PNG = 3, UNRECOGNIZED = -1 } export declare function imageSpec_ImageFormatFromJSON(object: any): ImageSpec_ImageFormat; export declare function imageSpec_ImageFormatToJSON(object: ImageSpec_ImageFormat): string; export declare enum ImageSpec_ImageOrientation { IMAGE_ORIENTATION_UNSPECIFIED = 0, /** IMAGE_ORIENTATION_VERTICAL - Horizontal orientation. */ IMAGE_ORIENTATION_VERTICAL = 1, /** IMAGE_ORIENTATION_HORIZONTAL - Vertical orientation. */ IMAGE_ORIENTATION_HORIZONTAL = 2, /** IMAGE_ORIENTATION_SQUARE - Square aspect ratio. */ IMAGE_ORIENTATION_SQUARE = 3, UNRECOGNIZED = -1 } export declare function imageSpec_ImageOrientationFromJSON(object: any): ImageSpec_ImageOrientation; export declare function imageSpec_ImageOrientationToJSON(object: ImageSpec_ImageOrientation): string; export declare enum ImageSpec_ImageSize { IMAGE_SIZE_UNSPECIFIED = 0, /** IMAGE_SIZE_ENORMOUS - Very large images (larger than 1,600 × 1,200 pixels). */ IMAGE_SIZE_ENORMOUS = 1, /** IMAGE_SIZE_LARGE - Large images (from 800 × 600 to 1,600 × 1,200 pixels). */ IMAGE_SIZE_LARGE = 2, /** IMAGE_SIZE_MEDIUM - Medium images (from 150 × 150 to 800 × 600 pixels). */ IMAGE_SIZE_MEDIUM = 3, /** IMAGE_SIZE_SMALL - Small images (from 32 × 32 to 150 × 150 pixels). */ IMAGE_SIZE_SMALL = 4, /** IMAGE_SIZE_TINY - Icons (up to 32 × 32 pixels). */ IMAGE_SIZE_TINY = 5, /** IMAGE_SIZE_WALLPAPER - Desktop wallpapers. */ IMAGE_SIZE_WALLPAPER = 6, UNRECOGNIZED = -1 } export declare function imageSpec_ImageSizeFromJSON(object: any): ImageSpec_ImageSize; export declare function imageSpec_ImageSizeToJSON(object: ImageSpec_ImageSize): string; export declare enum ImageSpec_ImageColor { IMAGE_COLOR_UNSPECIFIED = 0, /** IMAGE_COLOR_COLOR - Color images. */ IMAGE_COLOR_COLOR = 1, /** IMAGE_COLOR_GRAYSCALE - Black and white images. */ IMAGE_COLOR_GRAYSCALE = 2, /** IMAGE_COLOR_RED - Red is the main color of the image. */ IMAGE_COLOR_RED = 3, /** IMAGE_COLOR_ORANGE - Orange is the main color of the image. */ IMAGE_COLOR_ORANGE = 4, /** IMAGE_COLOR_YELLOW - Yellow is the main color of the image. */ IMAGE_COLOR_YELLOW = 5, /** IMAGE_COLOR_GREEN - Green is the main color of the image. */ IMAGE_COLOR_GREEN = 6, /** IMAGE_COLOR_CYAN - Cyan is the main color of the image. */ IMAGE_COLOR_CYAN = 7, /** IMAGE_COLOR_BLUE - Blue is the main color of the image. */ IMAGE_COLOR_BLUE = 8, /** IMAGE_COLOR_VIOLET - Violet is the main color of the image. */ IMAGE_COLOR_VIOLET = 9, /** IMAGE_COLOR_WHITE - White is the main color of the image. */ IMAGE_COLOR_WHITE = 10, /** IMAGE_COLOR_BLACK - Black is the main color of the image. */ IMAGE_COLOR_BLACK = 11, UNRECOGNIZED = -1 } export declare function imageSpec_ImageColorFromJSON(object: any): ImageSpec_ImageColor; export declare function imageSpec_ImageColorToJSON(object: ImageSpec_ImageColor): string; export interface ImageSearchRequest { /** Search query. */ query?: SearchQuery; /** Searching for images with a particular size, orientation, format or color. */ imageSpec?: ImageSpec; /** Searching for images on a particular website only. */ site: string; /** Number of results per search result page. */ docsOnPage: number; /** ID of the folder. */ folderId: string; /** User-Agent request header value. */ userAgent: string; } export interface ImageSearchResponse { /** Search results in XML format. */ rawData: Buffer; } export declare const ImageSpec: { encode(message: ImageSpec, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ImageSpec; fromJSON(object: any): ImageSpec; toJSON(message: ImageSpec): unknown; fromPartial, never>>(object: I): ImageSpec; }; export declare const ImageSearchRequest: { encode(message: ImageSearchRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ImageSearchRequest; fromJSON(object: any): ImageSearchRequest; toJSON(message: ImageSearchRequest): unknown; fromPartial, never>) | undefined; imageSpec?: ({ format?: ImageSpec_ImageFormat | undefined; size?: ImageSpec_ImageSize | undefined; orientation?: ImageSpec_ImageOrientation | undefined; color?: ImageSpec_ImageColor | undefined; } & { format?: ImageSpec_ImageFormat | undefined; size?: ImageSpec_ImageSize | undefined; orientation?: ImageSpec_ImageOrientation | undefined; color?: ImageSpec_ImageColor | undefined; } & Record, never>) | undefined; site?: string | undefined; docsOnPage?: number | undefined; folderId?: string | undefined; userAgent?: string | undefined; } & Record, never>>(object: I): ImageSearchRequest; }; export declare const ImageSearchResponse: { encode(message: ImageSearchResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ImageSearchResponse; fromJSON(object: any): ImageSearchResponse; toJSON(message: ImageSearchResponse): unknown; fromPartial, never>>(object: I): ImageSearchResponse; }; /** A set of methods for searching of images using the Yandex Images. */ export declare const ImageSearchServiceService: { readonly search: { readonly path: "/yandex.cloud.searchapi.v2.ImageSearchService/Search"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ImageSearchRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ImageSearchRequest; readonly responseSerialize: (value: ImageSearchResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ImageSearchResponse; }; }; export interface ImageSearchServiceServer extends UntypedServiceImplementation { search: handleUnaryCall; } export interface ImageSearchServiceClient extends Client { search(request: ImageSearchRequest, callback: (error: ServiceError | null, response: ImageSearchResponse) => void): ClientUnaryCall; search(request: ImageSearchRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ImageSearchResponse) => void): ClientUnaryCall; search(request: ImageSearchRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ImageSearchResponse) => void): ClientUnaryCall; } export declare const ImageSearchServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): ImageSearchServiceClient; service: typeof ImageSearchServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};