/** * Shared HMAC signing algorithm. * Used by both the client (sign.ts) and server (SignatureStrategy.ts) * to ensure the signature calculation is identical on both sides. */ /** * Canonicalize a request body for signing. * - null/undefined → empty string * - primitives → String(body) * - objects → JSON.stringify with sorted keys */ export declare function canonicalBody(body: unknown): string; /** * Build the string-to-sign from request components. * * Format: `\n\n\n\n` */ export declare function buildStringToSign(method: string, path: string, timestamp: string, nonce: string, body: unknown): string; /** * Compute HMAC-SHA256 signature of the string-to-sign. */ export declare function computeSignature(secret: string, stringToSign: string): string; /** * Derive the refresh signing key from a refreshToken: HMAC(refreshToken, salt). * Being able to sign == holding the refreshToken; key is per-user. */ export declare function deriveRefreshKey(refreshToken: string, salt: string): string; //# sourceMappingURL=algorithm.d.ts.map