import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.ai.llm.v1alpha";
/** Defines the options for text generation. */
export interface GenerationOptions {
    /** Enables streaming of partially generated text. */
    partialResults: boolean;
    /**
     * Affects creativity and randomness of responses. Should be a double number between 0 (inclusive) and 1 (inclusive).
     * Lower values produce more straightforward responses, while higher values lead to increased creativity and randomness.
     */
    temperature?: number;
    /**
     * Sets the maximum limit on the total number of tokens used for both the input prompt and the generated response.
     * Must be greater than zero and not exceed 7400 tokens.
     */
    maxTokens?: number;
}
/** Represents an alternative generated response, including its score and token count. */
export interface Alternative {
    /** The generated text response. */
    text: string;
    /** The score or confidence of the generated text. */
    score: number;
    /** The number of tokens in the generated response. */
    numTokens: number;
}
/** Represents a message within a chat. */
export interface Message {
    /** Identifies the sender of the message. */
    role: string;
    /** The text content of the message. */
    text: string;
}
/** Represents a token, the basic unit of text, used by the LLM. */
export interface Token {
    /** An internal token identifier. */
    id: number;
    /** The textual representation of the token. */
    text: string;
    /** Indicates whether the token is special or not. Special tokens define the model's behavior and are not visible to users. */
    special: boolean;
}
export declare const GenerationOptions: {
    encode(message: GenerationOptions, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GenerationOptions;
    fromJSON(object: any): GenerationOptions;
    toJSON(message: GenerationOptions): unknown;
    fromPartial<I extends {
        partialResults?: boolean | undefined;
        temperature?: number | undefined;
        maxTokens?: number | undefined;
    } & {
        partialResults?: boolean | undefined;
        temperature?: number | undefined;
        maxTokens?: number | undefined;
    } & Record<Exclude<keyof I, keyof GenerationOptions>, never>>(object: I): GenerationOptions;
};
export declare const Alternative: {
    encode(message: Alternative, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Alternative;
    fromJSON(object: any): Alternative;
    toJSON(message: Alternative): unknown;
    fromPartial<I extends {
        text?: string | undefined;
        score?: number | undefined;
        numTokens?: number | undefined;
    } & {
        text?: string | undefined;
        score?: number | undefined;
        numTokens?: number | undefined;
    } & Record<Exclude<keyof I, keyof Alternative>, never>>(object: I): Alternative;
};
export declare const Message: {
    encode(message: Message, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Message;
    fromJSON(object: any): Message;
    toJSON(message: Message): unknown;
    fromPartial<I extends {
        role?: string | undefined;
        text?: string | undefined;
    } & {
        role?: string | undefined;
        text?: string | undefined;
    } & Record<Exclude<keyof I, keyof Message>, never>>(object: I): Message;
};
export declare const Token: {
    encode(message: Token, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Token;
    fromJSON(object: any): Token;
    toJSON(message: Token): unknown;
    fromPartial<I extends {
        id?: number | undefined;
        text?: string | undefined;
        special?: boolean | undefined;
    } & {
        id?: number | undefined;
        text?: string | undefined;
        special?: boolean | undefined;
    } & Record<Exclude<keyof I, keyof Token>, never>>(object: I): Token;
};
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 {};
