import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
export declare const protobufPackage = "driveningress.v1";
export declare enum MessageType {
    MESSAGE_UNSPECIFIED = 0,
    MESSAGE_ERROR = 2,
    MESSAGE_SERVER_RESPONSE_ANIMATION = 1004,
    MESSAGE_CLIENT_AUDIO_INPUT = 2003,
    UNRECOGNIZED = -1
}
export declare function messageTypeFromJSON(object: any): MessageType;
export declare function messageTypeToJSON(object: MessageType): string;
/**
 * 兼容流式传输，只要 req_id 相同，客户端可以将音频分段发若干个 ClientAudioInputData
 * 新 req_id 出现后，老 req_id 的请求将被忽略
 */
export interface ClientAudioInputData {
    reqId: string;
    audio: Uint8Array;
    end: boolean;
}
export interface Flame {
    /** 平移 */
    translation: number[];
    /** 旋转 */
    rotation: number[];
    /** 脖子 */
    neckPose: number[];
    /** 下巴 */
    jawPose: number[];
    /** 眼睛 */
    eyePose: number[];
    /** 眼皮 */
    eyeLid: number[];
    /** 表情参数 */
    expression: number[];
}
export interface FlameAnimation {
    keyframes: Flame[];
}
export interface ServerResponseAnimationData {
    reqId: string;
    animation?: FlameAnimation | undefined;
}
export interface ErrorInfo {
    reqId: string;
    code: number;
    reason: string;
}
export interface Message {
    type: MessageType;
    error?: ErrorInfo | undefined;
    serverResponseAnimation?: ServerResponseAnimationData | undefined;
    clientAudioInput?: ClientAudioInputData | undefined;
}
export declare const ClientAudioInputData: MessageFns<ClientAudioInputData>;
export declare const Flame: MessageFns<Flame>;
export declare const FlameAnimation: MessageFns<FlameAnimation>;
export declare const ServerResponseAnimationData: MessageFns<ServerResponseAnimationData>;
export declare const ErrorInfo: MessageFns<ErrorInfo>;
export declare const Message: MessageFns<Message>;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.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]>;
} & {
    [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
};
export interface MessageFns<T> {
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    decode(input: BinaryReader | Uint8Array, length?: number): T;
    fromJSON(object: any): T;
    toJSON(message: T): unknown;
    create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
    fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
}
export {};
//# sourceMappingURL=driveningress.d.ts.map