import { g as TeamsFieldElement } from './types-CJuUZp1c.js'; interface TeamsModalElement { callbackId: string; children: TeamsModalChild[]; submitLabel?: string; title: string; type: "modal"; } type TeamsModalChild = TeamsFieldsModalElement | TeamsModalTextElement | TeamsModalTextInputElement | TeamsModalSelectElement | TeamsModalRadioSelectElement; interface TeamsModalTextElement { content: string; style?: "bold" | "muted" | "plain"; type: "text"; } interface TeamsFieldsModalElement { children: TeamsFieldElement[]; type: "fields"; } interface TeamsModalSelectOption { label: string; value: string; } interface TeamsModalTextInputElement { id: string; initialValue?: string; label: string; maxLength?: number; multiline?: boolean; optional?: boolean; placeholder?: string; type: "text_input"; } interface TeamsModalSelectElement { id: string; initialOption?: string; label: string; optional?: boolean; options: TeamsModalSelectOption[]; placeholder?: string; type: "select"; } interface TeamsModalRadioSelectElement extends Omit { type: "radio_select"; } interface TeamsTaskModuleResponse { task: { type: "continue"; value: { card: { content: unknown; contentType: "application/vnd.microsoft.card.adaptive"; }; title: string; }; }; } type TeamsModalResponse = { action: "close"; } | { action: "errors"; errors: Record; } | { action: "push" | "update"; modal: TeamsModalElement; }; interface TeamsDialogSubmitValues { callbackId: string | undefined; contextId: string | undefined; values: Record; } declare function modalToAdaptiveCard(modal: TeamsModalElement, options?: { callbackId?: string; contextId?: string; }): unknown; declare function parseTeamsDialogSubmitValues(data: Record | undefined): TeamsDialogSubmitValues; declare function toTeamsTaskModuleResponse(response: TeamsModalResponse | undefined, options?: { contextId?: string; }): TeamsTaskModuleResponse | undefined; export { type TeamsDialogSubmitValues, type TeamsFieldsModalElement, type TeamsModalChild, type TeamsModalElement, type TeamsModalRadioSelectElement, type TeamsModalResponse, type TeamsModalSelectElement, type TeamsModalSelectOption, type TeamsModalTextElement, type TeamsModalTextInputElement, type TeamsTaskModuleResponse, modalToAdaptiveCard, parseTeamsDialogSubmitValues, toTeamsTaskModuleResponse };