import type { ReactElement } from 'react'; import type { RenderExtensionPoint, ApiForRenderExtension } from '@shopify/retail-ui-extensions'; /** * Registers your React-based UI Extension to run for the selected extension point. * Additionally, this function will automatically provide the extension API as React * context, which you can access anywhere in your extension by using the `useExtensionApi()` * hook. * * @param extensionPoint The extension point you are registering for. This extension * point must be a `RenderExtensionPoint`; if you are trying to register for a non- * rendering extension point, like `pos.home.tile.render`, use the * `extend()` function provided by this library instead. * * @param render The function that will be called when Shopify Point of Sale begins rendering * your extension. This function is called with the API Point of Sale provided to your * extension, and must return a React element that will be rendered into the extension * point you specified. */ export declare function render(extensionPoint: ExtensionPoint, render: (api: ApiForRenderExtension) => ReactElement): void; //# sourceMappingURL=render.d.ts.map