/**
 * The two wp.element functions the app mounts with (the "wp-element" script,
 * kept external in vite.config.ts).
 */
declare module '@wordpress/element' {
    import type { ReactNode } from 'react';

    /** WordPress 6.2+ (React 18). */
    export const createRoot: undefined | ( ( container: Element ) => { render( children: ReactNode ): void } );

    /** Every version; the only way to mount on WordPress 6.0 and 6.1 (React 17). */
    export function render( element: ReactNode, container: Element ): void;
}
