import { ContributionDay, FetchParams } from '../../types'; export declare const CONTRIBUTIONS_QUERY = "\n query GitHubContributions($login: String!, $from: DateTime!, $to: DateTime!) {\n user(login: $login) {\n contributionsCollection(from: $from, to: $to) {\n contributionCalendar {\n weeks {\n contributionDays {\n date\n contributionCount\n }\n }\n }\n }\n }\n rateLimit {\n limit\n remaining\n resetAt\n cost\n }\n }\n"; interface RateLimitInfo { limit: number; remaining: number; resetAt: string; cost: number; } export interface GitHubGraphQLResponse { data?: { user: { contributionsCollection: { contributionCalendar: { weeks: { contributionDays: { date: string; contributionCount: number; }[]; }[]; }; }; } | null; rateLimit?: RateLimitInfo; }; errors?: { message: string; }[]; } export type GitHubGraphQLRequest = (variables: { login: string; from: string; to: string; }) => Promise; export declare const fetchContributionCalendar: (request: GitHubGraphQLRequest, params: FetchParams) => Promise; export {}; //# sourceMappingURL=github-graphql.d.ts.map