/** * `pages/api/push/subscriptions.js`: a browser saves (POST) or forgets * (DELETE) its own subscription. Public — a visitor does not need an account * to subscribe — so it only accepts a same-origin JSON request (a cross-site * page cannot link its own device to a signed-in visitor), validates the * subscription completely, takes the user from the session cookie, never from * the body, and changes a stored subscription only for the browser holding its * auth secret. Each server instance also caps the requests per client. */ export declare const buildSubscriptionsRouteSource: () => string; /** * `pages/api/push/send.js`: sends one notification to the stored * subscriptions. Internal — only the app's own server code can compute the * token it requires (an HMAC keyed with the VAPID private key). The request's * own host is the VAPID contact subject. * * One call sends for as long as a serverless call can wait; the rest of a * large audience is relayed to a new call of this route, which resumes after * the last subscription reached and relays on in turn. */ export declare const buildSendRouteSource: () => string; //# sourceMappingURL=routes-source.d.ts.map