import { EvershopRequest } from '../../../../types/request.js'; import { EvershopResponse } from '../../../../types/response.js'; /** * Mint an admin-scoped JWT pair from an established admin session cookie. * * Use case: a same-origin browser script that already has an authenticated * admin session needs a JWT pair to call the EverShop REST/GraphQL APIs * (or hand off to a third-party service that will impersonate the admin * via the access token + refresh flow at `/api/user/token/refresh`). * * Generic and not tied to any particular consumer — the route's access is * `private`, which means the global admin-auth middleware enforces a valid * admin session before this handler runs. If the request reaches here, * `request.locals.user` is the authenticated admin. */ declare const _default: (request: EvershopRequest, response: EvershopResponse) => Promise; export default _default;