function createClassComponent(options) {
	// @ts-expect-error $$prop_def etc are not actually defined
	return new Svelte4Component(options);
}
Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.

@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 {ComponentConstructorOptions<Props> & {
	component: ComponentType<SvelteComponent<Props, Events, Slots>> | Component<Props>;
}} options
@returns {SvelteComponent<Props, Events, Slots> & Exports}