import { type DomNode } from "../reconciler.js"; import type { JSX } from "../../jsx-runtime.js"; import type { ValidComponent, ComponentProps } from "solid-js"; /** * Renders components somewhere else in the DOM * * Useful for inserting modals and tooltips outside of an cropping layout. If no mount point is given, the portal is inserted on the root renderable; it is wrapped in a `` * * @description https://docs.solidjs.com/reference/components/portal */ export declare function Portal(props: { mount?: DomNode; ref?: (el: {}) => void; children: JSX.Element; }): JSX.Element; export type DynamicProps> = { [K in keyof P]: P[K]; } & { component: T | undefined; }; /** * Renders an arbitrary component or element with the given props * * This is a lower level version of the `Dynamic` component, useful for * performance optimizations in libraries. Do not use this unless you know * what you are doing. * ```typescript * const element = () => multiline() ? 'textarea' : 'input'; * createDynamic(element, { value: value() }); * ``` * @description https://docs.solidjs.com/reference/components/dynamic */ export declare function createDynamic(component: () => T | undefined, props: ComponentProps): JSX.Element; /** * Renders an arbitrary custom or native component and passes the other props * ```typescript * * ``` * @description https://docs.solidjs.com/reference/components/dynamic */ export declare function Dynamic(props: DynamicProps): JSX.Element;