import { ReactEntry, ReactEntryOptions } from "./types.js"; //#region src/createEntry/createEntry.d.ts /** * Creates a React entry object with methods for mounting and unmounting React components. * * @param options - Configuration options for the React entry. * @param options.Providers - Optional provider components to wrap the entry component. * @param options.initData - Initial data to be passed as props to the entry component. * @param options.waitFor - Optional array of promises to wait for before rendering the entry component. * @param options.fallback - Optional fallback component to be rendered while waiting. * * @returns A `ReactEntry` object with methods for mounting and unmounting the React component. * - `mount`: A method to render the entry component. Can optionally hydrate if `hydrate` is true. * - `unmount`: A method to unmount the entry component from the DOM. * * @example * // Example usage: * const entry = createEntry({ * EntryComponent: MyComponent, * Providers: MyProviders, * initData: { someProp: 'value' }, * waitFor: [fetchData()], * fallback: , * }); * * entry.mount({ hydrate: false }); * // Later in the lifecycle * entry.unmount(); */ declare function createEntry(options?: ReactEntryOptions): ReactEntry; //#endregion export { createEntry }; //# sourceMappingURL=createEntry.d.ts.map