/**
* Build a simple widget (html or rich_text) for page insertion.
* These widgets don't require a widget definition - just inline HTML/Liquid content.
*
* The Modyo API requires specific STI types for simple widgets:
* - "html" → "text_widget" (HTML/Liquid content)
* - "rich_text" → "rich_text_widget" (WYSIWYG content)
*
* @param type - Widget type: "html" or "rich_text"
* @param code - HTML/Liquid content for the widget
* @param title - Widget instance title for accessibility
* @param column - Column position in grid layout
* @param position - Position within column (0-based)
* @param sync - Whether to load synchronously (SSR)
* @returns Widget object ready for API
*/
export type SimpleWidgetType = "html" | "rich_text";
/** API widget types that Modyo backend expects (STI column) */
type ApiWidgetType = "text_widget" | "rich_text_widget";
export type SimpleWidgetInput = {
type: SimpleWidgetType;
code: string;
title: string;
column: number;
position: number;
sync?: boolean | undefined;
};
export type SimpleWidgetOutput = {
type: ApiWidgetType;
id: null;
title: string;
column: number;
position: number;
sync: boolean;
options: {
code: string;
};
};
export declare function buildSimpleWidget(input: SimpleWidgetInput): SimpleWidgetOutput;
export {};
//# sourceMappingURL=buildSimpleWidget.d.ts.map