import { B as BrowserDeliveryPayload } from './index-DnJqGDij.js'; /** * Browser (client) delivery — hub redirects the user's browser to the app with `?d=`. * * Used for localhost / loopback dev where the hub cannot POST to the app's delivery URL. * The app verifies the token, applies the payload, then redirects to `hubSuccessUrl`. * * Payload shape: {@link BrowserDeliveryPayload} in `hub/contracts/tunnel.ts`. */ /** * Builds the redirect URL the hub sends the user's browser to for client-side delivery. * * @param deliveryUrl - The app's Corsair delivery endpoint (e.g. `http://localhost:3001/api/corsair`). * @param signedToken - Output of {@link signBrowserDeliveryToken}. */ declare function buildBrowserDeliveryRedirectUrl(deliveryUrl: string, signedToken: string): string; /** * Signs a browser delivery payload for redirect-based delivery (local dev / `source: "client"`). * * Short TTL (60s) — the token travels in the browser URL and must be consumed quickly. * * @param payload - Delivery-specific fields; `jti`, `iat`, and `exp` are added automatically. * @param signingSecret - Per-project signing secret. */ declare function signBrowserDeliveryToken(payload: Omit & { jti?: string; }, signingSecret: string): string; /** * Verifies a `?d=` browser delivery token from the app side. * * @returns Decoded payload, or `null` if invalid or expired. */ declare function verifyBrowserDeliveryToken(token: string, signingSecret: string): BrowserDeliveryPayload | null; export { buildBrowserDeliveryRedirectUrl as b, signBrowserDeliveryToken as s, verifyBrowserDeliveryToken as v };