import * as ThingTalk from 'thingtalk'; import { EntityMap } from '../utils/entity-utils'; import { PlatformData } from './protocol'; export interface PreparsedCommand { code: string[]; entities: EntityMap; slots?: string[]; slotTypes?: Record; } interface NaturalLanguageUserInput { type: 'command'; utterance: string; platformData: PlatformData; } interface ThingTalkUserInput { type: 'thingtalk'; parsed: ThingTalk.Ast.Input; platformData: PlatformData; } export declare type UserInput = NaturalLanguageUserInput | ThingTalkUserInput; export {};