import { type FormProps } from '@remix-run/react'; export interface AppProxyFormProps extends FormProps { action: string; } /** * Sets up a Remix `
` component that works when rendered on an app proxy page. * * Supports any properties accepted by the `` component. * * Because Remix doesn't support URL rewriting, any route using this component should match the pathname of the proxy * URL exactly, and end in a trailing slash (e.g., `https:///apps/proxy/`), or set the Remix Form prop * `navigate` to `false`. * * @example * Render a form element in a proxied route. * Use an `AppProxyForm` within an `AppProxy` to create a form. * ```ts * // /app/routes/apps/appProxy.ts * import { * AppProxyProvider, * AppProxyForm, * } from "@shopify/shopify-app-remix/react"; * import { authenticate } from "~/shopify.server"; * * export async function loader({ request }) { * await authenticate.public.appProxy(request); * * return json({ appUrl: process.env.SHOPIFY_APP_URL }); * } * * export async function action({ request }) { * await authenticate.public.appProxy(request); * * const formData = await request.formData(); * const field = formData.get("field")?.toString(); * * // Perform actions * if (field) { * console.log("Field:", field); * } * * // Return JSON to the client * return json({ message: "Success!" }); * } * * export default function App() { * const { appUrl } = useLoaderData(); * * return ( * * * * * * * * ); * } * ``` * @publicDocs */ export declare const AppProxyForm: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=AppProxyForm.d.ts.map