import { EventsMap } from '@penpot/plugin-types'; export type RegisterListener = ( type: K, event: (arg: EventsMap[K]) => void, props?: { [key: string]: unknown }, ) => symbol;