UNPKG

x-api-sdk-ts

Version:

TypeScript Library for the X (ex-twitter) API V2

5 lines (4 loc) 313 B
import { IRateLimitInfo } from "../types/x-api/base_response"; export declare function parseRateLimitHeaders(headers: Headers): IRateLimitInfo; export declare function isRateLimitExceeded(rateLimitInfo?: IRateLimitInfo): boolean; export declare function getTimeUntilReset(rateLimitInfo?: IRateLimitInfo): number;