@inworld/web-core
Version:
15 lines (14 loc) • 526 B
TypeScript
import { TextEvent as ProtoTextEvent } from '../../../proto/ai/inworld/packets/packets.pb.js';
import { InworldTextPacketType } from '../../common/data_structures/index.js';
export declare class TextEvent {
readonly text: string;
readonly final: boolean;
readonly type?: InworldTextPacketType;
constructor({ text, final, type, }: {
text: string;
final: boolean;
type?: InworldTextPacketType;
});
static fromProto(proto: ProtoTextEvent): TextEvent;
private static getType;
}