/// <reference types="node" />
import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.speechsense.v1";
/** RAW Audio format spec (no container to infer type). Used in AudioFormat options. */
export interface RawAudio {
    /** Type of audio encoding */
    audioEncoding: RawAudio_AudioEncoding;
    /** PCM sample rate */
    sampleRateHertz: number;
    /** PCM channel count. */
    audioChannelCount: number;
}
export declare enum RawAudio_AudioEncoding {
    AUDIO_ENCODING_UNSPECIFIED = 0,
    /** AUDIO_ENCODING_LINEAR16_PCM - Audio bit depth 16-bit signed little-endian (Linear PCM). */
    AUDIO_ENCODING_LINEAR16_PCM = 1,
    UNRECOGNIZED = -1
}
export declare function rawAudio_AudioEncodingFromJSON(object: any): RawAudio_AudioEncoding;
export declare function rawAudio_AudioEncodingToJSON(object: RawAudio_AudioEncoding): string;
/** Audio with fixed type in container. Used in AudioFormat options. */
export interface ContainerAudio {
    /** Type of audio container. */
    containerAudioType: ContainerAudio_ContainerAudioType;
}
export declare enum ContainerAudio_ContainerAudioType {
    CONTAINER_AUDIO_TYPE_UNSPECIFIED = 0,
    /** CONTAINER_AUDIO_TYPE_WAV - Audio bit depth 16-bit signed little-endian (Linear PCM). */
    CONTAINER_AUDIO_TYPE_WAV = 1,
    /** CONTAINER_AUDIO_TYPE_OGG_OPUS - Data is encoded using the OPUS audio codec and compressed using the OGG container format. */
    CONTAINER_AUDIO_TYPE_OGG_OPUS = 2,
    /** CONTAINER_AUDIO_TYPE_MP3 - Data is encoded using MPEG-1/2 Layer III and compressed using the MP3 container format. */
    CONTAINER_AUDIO_TYPE_MP3 = 3,
    UNRECOGNIZED = -1
}
export declare function containerAudio_ContainerAudioTypeFromJSON(object: any): ContainerAudio_ContainerAudioType;
export declare function containerAudio_ContainerAudioTypeToJSON(object: ContainerAudio_ContainerAudioType): string;
/** Audio format options. */
export interface AudioMetadata {
    /** Audio without container. */
    rawAudio?: RawAudio | undefined;
    /** Audio is wrapped in container. */
    containerAudio?: ContainerAudio | undefined;
}
/** Data chunk with audio. */
export interface AudioChunk {
    /** Bytes with audio data. */
    data: Buffer;
}
/**
 * Streaming audio request
 * First message should be audio metadata.
 * The next messages are audio data chunks.
 */
export interface AudioStreamingRequest {
    /** Session options. Should be the first message from user. */
    audioMetadata?: AudioMetadata | undefined;
    /** Chunk with audio data. */
    chunk?: AudioChunk | undefined;
}
/** request for sending small audios (< 128 mb) in one go */
export interface AudioRequest {
    /** audio metadata */
    audioMetadata?: AudioMetadata;
    /** Bytes with audio data. */
    audioData?: AudioChunk;
}
export declare const RawAudio: {
    encode(message: RawAudio, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): RawAudio;
    fromJSON(object: any): RawAudio;
    toJSON(message: RawAudio): unknown;
    fromPartial<I extends {
        audioEncoding?: RawAudio_AudioEncoding | undefined;
        sampleRateHertz?: number | undefined;
        audioChannelCount?: number | undefined;
    } & {
        audioEncoding?: RawAudio_AudioEncoding | undefined;
        sampleRateHertz?: number | undefined;
        audioChannelCount?: number | undefined;
    } & Record<Exclude<keyof I, keyof RawAudio>, never>>(object: I): RawAudio;
};
export declare const ContainerAudio: {
    encode(message: ContainerAudio, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ContainerAudio;
    fromJSON(object: any): ContainerAudio;
    toJSON(message: ContainerAudio): unknown;
    fromPartial<I extends {
        containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
    } & {
        containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
    } & Record<Exclude<keyof I, "containerAudioType">, never>>(object: I): ContainerAudio;
};
export declare const AudioMetadata: {
    encode(message: AudioMetadata, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AudioMetadata;
    fromJSON(object: any): AudioMetadata;
    toJSON(message: AudioMetadata): unknown;
    fromPartial<I extends {
        rawAudio?: {
            audioEncoding?: RawAudio_AudioEncoding | undefined;
            sampleRateHertz?: number | undefined;
            audioChannelCount?: number | undefined;
        } | undefined;
        containerAudio?: {
            containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
        } | undefined;
    } & {
        rawAudio?: ({
            audioEncoding?: RawAudio_AudioEncoding | undefined;
            sampleRateHertz?: number | undefined;
            audioChannelCount?: number | undefined;
        } & {
            audioEncoding?: RawAudio_AudioEncoding | undefined;
            sampleRateHertz?: number | undefined;
            audioChannelCount?: number | undefined;
        } & Record<Exclude<keyof I["rawAudio"], keyof RawAudio>, never>) | undefined;
        containerAudio?: ({
            containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
        } & {
            containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
        } & Record<Exclude<keyof I["containerAudio"], "containerAudioType">, never>) | undefined;
    } & Record<Exclude<keyof I, keyof AudioMetadata>, never>>(object: I): AudioMetadata;
};
export declare const AudioChunk: {
    encode(message: AudioChunk, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AudioChunk;
    fromJSON(object: any): AudioChunk;
    toJSON(message: AudioChunk): unknown;
    fromPartial<I extends {
        data?: Buffer | undefined;
    } & {
        data?: Buffer | undefined;
    } & Record<Exclude<keyof I, "data">, never>>(object: I): AudioChunk;
};
export declare const AudioStreamingRequest: {
    encode(message: AudioStreamingRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AudioStreamingRequest;
    fromJSON(object: any): AudioStreamingRequest;
    toJSON(message: AudioStreamingRequest): unknown;
    fromPartial<I extends {
        audioMetadata?: {
            rawAudio?: {
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } | undefined;
            containerAudio?: {
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } | undefined;
        } | undefined;
        chunk?: {
            data?: Buffer | undefined;
        } | undefined;
    } & {
        audioMetadata?: ({
            rawAudio?: {
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } | undefined;
            containerAudio?: {
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } | undefined;
        } & {
            rawAudio?: ({
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } & {
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } & Record<Exclude<keyof I["audioMetadata"]["rawAudio"], keyof RawAudio>, never>) | undefined;
            containerAudio?: ({
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } & {
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } & Record<Exclude<keyof I["audioMetadata"]["containerAudio"], "containerAudioType">, never>) | undefined;
        } & Record<Exclude<keyof I["audioMetadata"], keyof AudioMetadata>, never>) | undefined;
        chunk?: ({
            data?: Buffer | undefined;
        } & {
            data?: Buffer | undefined;
        } & Record<Exclude<keyof I["chunk"], "data">, never>) | undefined;
    } & Record<Exclude<keyof I, keyof AudioStreamingRequest>, never>>(object: I): AudioStreamingRequest;
};
export declare const AudioRequest: {
    encode(message: AudioRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AudioRequest;
    fromJSON(object: any): AudioRequest;
    toJSON(message: AudioRequest): unknown;
    fromPartial<I extends {
        audioMetadata?: {
            rawAudio?: {
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } | undefined;
            containerAudio?: {
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } | undefined;
        } | undefined;
        audioData?: {
            data?: Buffer | undefined;
        } | undefined;
    } & {
        audioMetadata?: ({
            rawAudio?: {
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } | undefined;
            containerAudio?: {
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } | undefined;
        } & {
            rawAudio?: ({
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } & {
                audioEncoding?: RawAudio_AudioEncoding | undefined;
                sampleRateHertz?: number | undefined;
                audioChannelCount?: number | undefined;
            } & Record<Exclude<keyof I["audioMetadata"]["rawAudio"], keyof RawAudio>, never>) | undefined;
            containerAudio?: ({
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } & {
                containerAudioType?: ContainerAudio_ContainerAudioType | undefined;
            } & Record<Exclude<keyof I["audioMetadata"]["containerAudio"], "containerAudioType">, never>) | undefined;
        } & Record<Exclude<keyof I["audioMetadata"], keyof AudioMetadata>, never>) | undefined;
        audioData?: ({
            data?: Buffer | undefined;
        } & {
            data?: Buffer | undefined;
        } & Record<Exclude<keyof I["audioData"], "data">, never>) | undefined;
    } & Record<Exclude<keyof I, keyof AudioRequest>, never>>(object: I): AudioRequest;
};
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 {};
