/** * Request header builders for testing API authentication * * Provides helper functions to build authentication headers * for testing API endpoints. * * @example * ```typescript * // JWT auth headers * const headers = authHeaders(jwt); * * // Bot auth headers with signature * const botHeaders = await authHeadersWithSignature( * 'bot-token', * 'user-id', * 'username' * ); * * // Use in requests * const response = await fetch('/api/protected', { headers }); * ``` */ /** * Creates basic auth headers with a bearer token * * @param token - The bearer token (JWT or API key) * @param userId - Optional Discord user ID * @param userName - Optional Discord username * @returns Headers object */ export declare function authHeaders(token: string, userId?: string, userName?: string): Record; /** * Creates auth headers with HMAC signature for bot authentication * * @param token - The bot API token * @param userId - Discord user ID (optional) * @param userName - Discord username (optional) * @param signingSecret - The signing secret (defaults to TEST_SIGNING_SECRET) * @returns Headers object with signature */ export declare function authHeadersWithSignature(token: string, userId?: string, userName?: string, signingSecret?: string): Promise>; /** * Creates JSON content headers * * @returns Headers object with Content-Type: application/json */ export declare function jsonHeaders(): Record; /** * Merges multiple header objects * * @param headerObjects - Header objects to merge * @returns Merged headers object */ export declare function mergeHeaders(...headerObjects: Record[]): Record; /** * Creates authenticated JSON request headers * * @param token - The bearer token * @param userId - Optional Discord user ID * @param userName - Optional Discord username * @returns Headers object with auth and content-type */ export declare function authenticatedJsonHeaders(token: string, userId?: string, userName?: string): Record; //# sourceMappingURL=headers.d.ts.map