import { SlangEntity, SlangIntent } from "./slangIntent"; type AIntentHandlerCallback = (intent: SlangIntent, session?: any) => any; type ASessionCallback = (isCancelled?: boolean, session?: any) => any; type AEntityHandlerCallback = (entity: SlangEntity | { [key: string]: SlangEntity; }, intent: SlangIntent, session?: any) => any; interface IIntentHandler { onSessionBegin: null | ASessionCallback; onIntentResolutionBegin: null | AIntentHandlerCallback; onEntityUnresolved: null | AEntityHandlerCallback; onEntityResolved: null | AEntityHandlerCallback; onIntentResolutionEnd: null | AIntentHandlerCallback; action: null | AIntentHandlerCallback; onSessionEnd: null | ASessionCallback; isMultiStep: boolean; isUnorderedIntent: boolean; } declare class SlangIntentHandler implements IIntentHandler { onSessionBegin: null | ASessionCallback; onIntentResolutionBegin: null | AIntentHandlerCallback; onEntityUnresolved: null | AEntityHandlerCallback; onEntityResolved: null | AEntityHandlerCallback; onIntentResolutionEnd: null | AIntentHandlerCallback; action: null | AIntentHandlerCallback; onSessionEnd: null | ASessionCallback; isMultiStep: boolean; isUnorderedIntent: boolean; constructor({ onSessionBegin, onIntentResolutionBegin, onEntityUnresolved, onEntityResolved, onIntentResolutionEnd, action, onSessionEnd, isMultiStep, isUnorderedIntent, }: IIntentHandler); } export { SlangIntentHandler };