import type { WidgetType } from '@wordpress/widget-primitives';
import type { DashboardWidget } from '../../types';
/**
 * Create a new dashboard widget from a widget type.
 *
 * Generates a unique id and applies default placement. If no initial
 * attributes are provided, falls back to the type's `example.attributes`
 * (matching the `widget.json` schema).
 *
 * @param widgetType        Source widget type.
 * @param initialAttributes Initial attributes; default to the type's example.
 */
export declare function createDashboardWidget<T>(widgetType: WidgetType, initialAttributes?: T): DashboardWidget<T>;
//# sourceMappingURL=create-dashboard-widget.d.ts.map