/** * Fetches and builds widget data from the backend by widget ID. * * Retrieves complete widget structure including concepts, connections, and metadata. * Uses caching to prevent duplicate requests for the same widget. * * @param id - The widget ID to fetch * @returns Promise resolving to formatted widget data */ export declare function BuildWidgetFromId(id: number): Promise; /** * Builds widget data from local cache instead of making API request. * * @param id - The widget ID to fetch from cache * @returns Promise resolving to widget data object with mainId */ export declare function BuildWidgetFromCache(id: number): Promise; /** * Fetches the latest published version of a widget by origin ID. * * Retrieves the most recent version of a widget, useful for always displaying * updated content. Uses separate cache from standard widget requests. * * @param id - The origin widget ID to fetch latest version for * @returns Promise resolving to object with widget data and mainId */ export declare function BuildWidgetFromIdForLatest(id: number): Promise; /** * Fetches the recent published version of a widget by origin ID. * * Retrieves the most recent version of a widget, useful for always displaying * updated content. Uses separate cache from standard widget requests. * * @param id - The origin widget ID to fetch latest version for * @returns Promise resolving to object with widget data and mainId */ export declare function BuildWidgetFromIdForRecent(id: number): Promise; /** * Finds and returns a specific widget from bulk widget data by ID. * * @param data - Array of widget data objects * @param id - The widget ID to find * @returns The matching widget object or undefined */ export declare function GetWidgetForTree(data: any, id: number): any;