export const GITHUB_API_REQUEST_TIMEOUT_MS: number; export const GITHUB_ERROR_BODY_MAX_BYTES: number; export const GITHUB_RESPONSE_BODY_MAX_BYTES: number; export const allowSecuritySensitiveCommand: string; export const securitySensitiveGuardMarker: string; type Comment = { body?: string; created_at?: string; html_url?: string; user?: { login?: string } }; type ActorCandidate = { login: string; source: string }; export function securitySensitiveFileDefinitions(): Array<{ path: string; reason: string }>; export function securitySensitiveFileDefinition( filename: string, ): { path: string; reason: string } | undefined; export function isSecuritySensitiveFile(filename: string): boolean; export function sanitizeDisplayValue(value: unknown): string; export function markdownCode(value: unknown): string; export function findSecuritySensitiveOverrideCommand(options: { comments: Comment[]; expectedSha: string; isSecurityMember: (login: string) => boolean; newerThan?: string; }): { login: string; reason: string | null; sha: string; url?: string } | null; export function findSecuritySensitiveOverrideCommandAsync(options: { comments: Comment[]; expectedSha: string; isSecurityMember: (login: string) => Promise; newerThan?: string; }): Promise<{ login: string; reason: string | null; sha: string; url?: string } | null>; export function securitySensitiveGuardCommentHeadSha(comment: Comment): string | null; export function securitySensitiveOverrideExpectedSha( comment: Comment | null, currentHeadSha: string, ): string | null; export function isSecuritySensitiveGuardAuthorizedForHead( comment: Comment, currentHeadSha: string, ): boolean; export function isSecuritySensitiveGuardTrustedForHead( comment: Comment, currentHeadSha: string, ): boolean; export function securityApproverSet(value: unknown): Set; export function securitySensitiveGuardCommentAuthors(value?: unknown): Set; export function isSecuritySensitiveGuardMarkerComment( comment: Comment, trustedAuthors: Set, ): boolean; export function collectSecuritySensitiveChanges( files: Array<{ filename: string; previous_filename?: string; status?: string }>, ): Array>; export function renderSecuritySensitiveAwarenessComment( changes: Array>, ): string; export function renderAuthorizedSecuritySensitiveComment(override: Record): string; export function renderTrustedSecuritySensitiveComment(options: Record): string; export function renderClearedSecuritySensitiveGuardComment(options: { headSha: string }): string; export function renderBlockedSecuritySensitiveComment(options: Record): string; export function securitySensitiveGuardTrustedActorCandidates( options: Record, ): ActorCandidate[]; export function findTrustedSecuritySensitiveGuardActor(options: { candidates: ActorCandidate[]; isSecuritySensitiveApprover: (login: string) => Promise; }): Promise<{ login: string; reason: string } | null>; export function githubApi( token: string, options?: { fetchImpl?: typeof fetch; responseMaxBodyBytes?: number; timeoutMs?: number }, ): { request(path: string, options?: Record): Promise }; export function readBoundedGitHubErrorText( response: Response, maxBytes?: number, options?: { signal?: AbortSignal }, ): Promise; export function readBoundedGitHubJson( response: Response, maxBytes?: number, options?: { signal?: AbortSignal }, ): Promise;