import { Endpoints } from "@octokit/types"; //#region src/types.d.ts type GitHubUser = Endpoints["GET /users/{username}"]["response"]["data"]; type GitHubEvent = Endpoints["GET /users/{username}/events/public"]["response"]["data"][number] & { payload?: { ref_type?: string; [key: string]: unknown; }; }; type IdentifyFlag = { label: string; points: number; detail: string; }; type IdentifyReplicantOptions = { createdAt: string; reposCount: number; accountName: string; events: GitHubEvent[]; }; type IdentityClassification = "organic" | "mixed" | "automation"; type IdentifyReplicantResult = { score: number; classification: IdentityClassification; flags: IdentifyFlag[]; profile: { age: number; repos: number; }; }; //#endregion //#region src/identify-replicant.d.ts declare function identifyReplicant({ createdAt, reposCount, accountName, events }: IdentifyReplicantOptions): IdentifyReplicantResult; //#endregion //#region src/classification.d.ts declare function getClassificationDetails(classification: IdentityClassification | undefined): { label: string; description: string; }; //#endregion export { type GitHubEvent, type GitHubUser, type IdentifyReplicantResult, type IdentityClassification, getClassificationDetails, identifyReplicant };