@voiceflow/base-types
Version:
Voiceflow base project types
36 lines • 826 B
TypeScript
import type { Nullable } from '@voiceflow/common';
export declare enum ButtonType {
INTENT = "INTENT"
}
export declare enum ButtonsLayout {
STACKED = "stacked",
CAROUSEL = "carousel"
}
/**
* @deprecated Use BaseButton instead
*/
export interface Chip {
label: string;
}
export interface BaseButton<T> {
type: ButtonType;
name: string;
payload: T;
}
export interface IntentButton extends BaseButton<{
intentID: Nullable<string>;
}> {
type: ButtonType.INTENT;
}
export type AnyButton = IntentButton;
export interface StepButtonsLayout {
buttonsLayout?: Nullable<ButtonsLayout>;
}
export interface StepButton extends StepButtonsLayout {
/**
* @deprecated Use buttons
*/
chips: Nullable<Chip[]>;
buttons?: Nullable<AnyButton[]>;
}
//# sourceMappingURL=index.d.ts.map