import { graphql as OctokitGraphql } from '@octokit/graphql'; import { Octokit } from '@octokit/rest'; import type { components } from '@octokit/openapi-types'; import type { JsonContent } from '@socketsecurity/registry/lib/fs'; export type Pr = components['schemas']['pull-request']; export declare function writeCache(key: string, data: JsonContent): Promise; export declare function cacheFetch(key: string, fetcher: () => Promise, ttlMs?: number | undefined): Promise; export type GhsaDetails = { ghsaId: string; cveId?: string | undefined; summary: string; severity: string; publishedAt: string; withdrawnAt?: string | undefined; references: Array<{ url: string; }>; vulnerabilities: { nodes: Array<{ package: { ecosystem: string; name: string; }; vulnerableVersionRange: string; }>; }; }; export declare function fetchGhsaDetails(ids: string[]): Promise>; export declare function getOctokit(): Octokit; export declare function getOctokitGraphql(): typeof OctokitGraphql; export type PrAutoMergeState = { enabled: boolean; details?: string[] | undefined; }; export declare function enablePrAutoMerge({ node_id: prId }: Pr): Promise; export declare function prExistForBranch(owner: string, repo: string, branch: string): Promise; export declare function setGitRemoteGithubRepoUrl(owner: string, repo: string, token: string, cwd?: string): Promise; //# sourceMappingURL=github.d.mts.map