function asClassComponent(component) {
	// @ts-expect-error $$prop_def etc are not actually defined
	return class extends Svelte4Component {
		/** @param {any} options */
		constructor(options) {
			super({
				component,
				...options
			});
		}
	};
}
Takes the component function and returns a Svelte 4 compatible component constructor.

@deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.

@template {Record<string, any>} Props
@template {Record<string, any>} Exports
@template {Record<string, any>} Events
@template {Record<string, any>} Slots

@param {SvelteComponent<Props, Events, Slots> | Component<Props>} component
@returns {ComponentType<SvelteComponent<Props, Events, Slots> & Exports>}