import type { GitHubDateRange } from "../common/date.js"; import type { RangeContributionsByRepoFragment } from "./generated/stats.js"; /** max value GitHub allows for `first/maxRepositories` */ declare const MAX_REPOSITORIES_LIMIT = 100; interface ReposContributedToQueryVariables { login: string; maxRepositories: number; } interface ReposContributedToQuery { user: Record<`range_${number}`, RangeContributionsByRepoFragment> | null; } /** * Build a query for the repositories a user contributed to within multiple time * ranges. One aliased `contributionsCollection` field per range, so all ranges * are fetched in a single request. The shape is only known at runtime. * * Mirrors the `contributionTypes: [COMMIT, ISSUE, PULL_REQUEST, REPOSITORY]` * filter used by `repositoriesContributedTo` in `stats.graphql`. * * @param ranges Ranges to fetch, one `range_` alias each. * @param includeOwnRepos Whether to select `repositoryContributions`. * @returns Document for `createGraphQLFetcher`. */ declare const buildReposContributedToDocument: (ranges: Array, includeOwnRepos: boolean) => import("./graphqlDocument.js").GraphQLDocument; export { buildReposContributedToDocument, MAX_REPOSITORIES_LIMIT }; export type { ReposContributedToQuery }; //# sourceMappingURL=reposContributedToDocument.d.ts.map