import { EvershopRequest } from '../../../../../types/request.js'; import { EvershopResponse } from '../../../../../types/response.js'; /** * `/cart/recover`: the cart recovery link the visitor opened (`cartRecover` * keeps its token in the session). * * - GET never changes anything (email scanners open links, a link works * once): a valid link shows the saved cart's products and a "Restore my * cart" button, which POSTs here. * - POST restores (`restoreCart`) and goes to the cart page. The session then * remembers it, so Back, a reload, or the login page's background request * go to the cart page too, not to "no longer valid". * - A link used already (its cart was restored): the page says so, with a * button to the cart; a POST goes to the cart page. * - A customer's cart and the visitor is not signed in: to the login page, * which comes back here. * - Anything else: the page says the link is no longer valid, without the * reason. */ declare const _default: (request: EvershopRequest, response: EvershopResponse, next: () => void) => Promise; export default _default;