import type { PluginEvent } from 'roosterjs-editor-types'; /** * Gets the cached event data by cache key from event object if there is already one. * Otherwise, call getter function to create one, and cache it. * @param event The event object * @param key Cache key string, need to be unique * @param getter Getter function to get the object when it is not in cache yet */ export default function cacheGetEventData(event: PluginEvent | null, key: string, getter: () => T): T;