import type { AuthenticatedMedusaRequest, MedusaRequest, MedusaResponse } from "@medusajs/framework/http"; /** * The PayPal onboarding `return_url` (the page the mini-browser popup lands on) * is the PUBLIC route `GET /store/paypal/onboard-return` — `/admin/*` routes * require an auth token that a top-level popup navigation cannot carry, which * would leave the popup stuck on a 401 page. This admin GET is therefore not part * of the browser flow; it only documents the contract for the POST below. */ export declare function GET(_req: MedusaRequest, res: MedusaResponse): Promise; /** * POST /admin/paypal/onboard-complete — exchange PayPal's `authCode` + * `sharedId` for seller credentials (idempotent). * * Typed as AuthenticatedMedusaRequest: every /admin/* route is gated by * Medusa's built-in admin authentication, so this credential-exchange endpoint * only runs for an authenticated admin. The typed request makes that contract * explicit (and gives access to the authenticated actor if ever needed). */ export declare function POST(req: AuthenticatedMedusaRequest, res: MedusaResponse): Promise; //# sourceMappingURL=route.d.ts.map