import { PoolClient } from '@evershop/postgres-query-builder'; import { WidgetData } from './createWidget.js'; declare const _default: (uuid: string, data: Partial, context: Record) => Promise<{ widget_instance_id: number; } & Record>; export default _default; export declare function hookBeforeUpdateWidgetData(callback: (this: Record, ...args: [uuid: string, data: Partial, connection: PoolClient]) => void | Promise, priority?: number): void; export declare function hookAfterUpdateWidgetData(callback: (this: Record, ...args: [uuid: string, data: Partial, connection: PoolClient]) => void | Promise, priority?: number): void; export declare function hookBeforeUpdateWidgetPlacements(callback: (this: Record, ...args: [ widget: { widget_instance_id: number; }, data: Partial, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookAfterUpdateWidgetPlacements(callback: (this: Record, ...args: [ widget: { widget_instance_id: number; }, data: Partial, connection: PoolClient ]) => void | Promise, priority?: number): void; export declare function hookBeforeUpdateWidget(callback: (this: Record, ...args: [ uuid: string, data: Partial, context: Record ]) => void | Promise, priority?: number): void; export declare function hookAfterUpdateWidget(callback: (this: Record, ...args: [ uuid: string, data: Partial, context: Record ]) => void | Promise, priority?: number): void;