/** * Register a callback that provides the values to save when the user clicks save in the editor. * The values are serialized to JSON and nested objects are flattened to dot notation keys. * @example onSave(() => ({ foo: { bar: 'test' } })) // saves { 'foo.bar': 'test' } * @param {() => Record} callback - Returns the values to save. */ export default function onSave(callback: () => Record): void;