/** A span between two dates, as GitHub's range arguments take it. */ interface GitHubDateRange { /** Start of the range, inclusive. */ from: Date; /** End of the range, inclusive. */ to: Date; } /** * Format a date as a GitHub `DateTime` scalar. * Seconds precision, no milliseconds. * * @param date Date to format. * @returns e.g. `2024-01-01T00:00:00Z`. */ declare const toGitHubDateTime: (date: Date) => string; /** * The full UTC span of a calendar year, both ends inclusive. * * The end matters to callers that would otherwise leave a range open: * GitHub's `contributionsCollection` defaults `to` to one year after `from`, * which pulls the next 1st of January into the year. * * @param year Four-digit year. * @returns The range covering it. */ declare const getGitHubYearRange: (year: number) => GitHubDateRange; /** * Get diff in minutes between two dates. * * @param d1 First date. * @param d2 Second date. * @returns Number of minutes between the two dates. */ declare const dateDiff: (d1: Date, d2: Date) => number; export { dateDiff, getGitHubYearRange, toGitHubDateTime }; export type { GitHubDateRange }; //# sourceMappingURL=date.d.ts.map