import type { dia } from '@joint/core'; export interface SubscribeHandler { readonly subscribe: (onStoreChange: (changedIds?: Set) => void) => () => void; readonly notifySubscribers: () => void; } /** * Subscribe handler for managing subscribers and notifying them. * This handler allows you to subscribe to changes and notify subscribers when changes occur. * @param beforeSubscribe - Optional callback to be called before notifying subscribers. * @returns - An object with subscribe and notifySubscribers methods. * @group utils */ export declare function subscribeHandler(beforeSubscribe?: () => Set | undefined): SubscribeHandler;