import { Bt as createRepositoryCore, Gt as getRepositoryTreeCore, Ht as forkRepositoryCore, Jt as PagedList, Kt as listBranchesCore, Rt as createBranchCore, Ut as getFileContentCore, Vt as deleteBranchCore, Wt as getRepositoryCore, Xt as __exportAll, qt as repository_d_exports, zt as createOrUpdateFileCore } from "./index-DkZvveZP.mjs"; import { A as GITHUB_TOOL_CATALOG, C as GithubTokenInput, D as PRESET_TOOLS, E as GithubToolPreset, M as GithubWriteToolName, O as PresetToolName, S as GithubTokenCall, a as GithubToolsContext, b as AUTO_APPROVAL_TOOLS, f as ApprovalConfig, j as GithubToolName, k as GITHUB_TOOL_NAMES, m as ToolApprovalMode, o as CommitIdentity, x as DEFAULT_EVALUATION_MODEL, y as GITHUB_WRITE_TOOLS } from "./tool-types-CrC80SIL.mjs"; import { t as githubToolApproval } from "./interrupts-BSDPwdJ2.mjs"; import { z } from "zod"; import { AnyTextAdapter, ChatMiddleware, ChatStream, EvaluateAdapter, ServerTool, Tool, chat } from "@tanstack/ai"; //#region src/core/detail.d.ts type DetailLevel = 'summary' | 'full'; declare namespace bundles_d_exports { export { getCiFailureContextCore, getCiFailureContextDescription, getCiFailureContextInputSchema, getIssueContextCore, getIssueContextDescription, getIssueContextInputSchema, getPullRequestContextCore, getPullRequestContextDescription, getPullRequestContextInputSchema, getReleaseContextCore, getReleaseContextDescription, getReleaseContextInputSchema }; } declare const getPullRequestContextInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; includeFiles: z.ZodDefault>; includeReviews: z.ZodDefault>; includeChecks: z.ZodDefault>; includePatch: z.ZodDefault>; filesPerPage: z.ZodDefault>; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getPullRequestContextDescription = "Fetch pull request details plus files, reviews, and optional CI checks in one call — prefer this over separate getPullRequest / listPullRequestFiles / listPullRequestReviews calls. filesHasMore / reviewsHasMore mean more pages exist on those lists."; declare function getPullRequestContextCore({ token, owner, repo, pullNumber, includeFiles, includeReviews, includeChecks, includePatch, filesPerPage, detail }: { token: string; owner: string; repo: string; pullNumber: number; includeFiles: boolean; includeReviews: boolean; includeChecks: boolean; includePatch: boolean; filesPerPage: number; detail?: DetailLevel; }): Promise<{ checks?: { checkRuns: { hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; checkRuns: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string | null; completedAt: string | null; }[]; }; combinedStatus: { state: string; totalCount: number; statuses: { context: string; state: string; description: string | null; url: string | null; }[]; }; } | undefined; reviews?: { id: number; state: string; body: string; author: string | undefined; url: string; submittedAt: string | undefined; }[] | undefined; reviewsHasMore?: boolean | undefined; files?: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; changes: number; }[] | undefined; filesHasMore?: boolean | undefined; pullRequest: { number: number; title: string; body: string | null | undefined; state: "open" | "closed"; url: string; author: string; branch: string; headSha: string; base: string; draft: boolean | undefined; merged: boolean; mergeable: boolean | null; additions: number; deletions: number; changedFiles: number; createdAt: string; updatedAt: string; mergedAt: string | null; }; }>; declare const getIssueContextInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; includeLabels: z.ZodDefault>; includeComments: z.ZodDefault>; maxComments: z.ZodDefault>; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getIssueContextDescription = "Fetch an issue plus available label names and recent comments in one call — prefer this over separate getIssue / listLabels / comment calls when triaging. Call once; do not re-fetch the same issue. commentsHasMore means more comments exist — use listIssueComments with nextPage."; declare function getIssueContextCore({ token, owner, repo, issueNumber, includeLabels, includeComments, maxComments, detail }: { token: string; owner: string; repo: string; issueNumber: number; includeLabels: boolean; includeComments: boolean; maxComments: number; detail?: DetailLevel; }): Promise<{ comments?: { id: number; url: string; body: string | null | undefined; author: string | undefined; createdAt: string; updatedAt: string; }[] | undefined; commentsHasMore?: boolean | undefined; labelNames?: string[] | undefined; issue: { number: number; title: string; body: string | null | undefined; state: string; url: string; author: string | undefined; assignees: string[] | undefined; labels: (string | undefined)[]; comments: number; createdAt: string; updatedAt: string; closedAt: string | null; }; }>; declare const getReleaseContextInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; releaseId: z.ZodOptional; includePrevious: z.ZodDefault>; includeCompare: z.ZodDefault>; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getReleaseContextDescription = "Fetch a release (latest or by ID) plus the previous release and tag comparison in one call — prefer this when preparing or reviewing a release"; declare function getReleaseContextCore({ token, owner, repo, releaseId, includePrevious, includeCompare, detail }: { token: string; owner: string; repo: string; releaseId?: number; includePrevious: boolean; includeCompare: boolean; detail?: DetailLevel; }): Promise<{ comparison?: { status: "diverged" | "ahead" | "behind" | "identical"; aheadBy: number; behindBy: number; totalCommits: number; url: string; commits: { sha: string; message: string; author: string | undefined; authorLogin: string | undefined; }[]; files: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; }[] | undefined; } | undefined; previousRelease?: { id: number; tagName: string; name: string | null; body: string | null | undefined; draft: boolean; prerelease: boolean; url: string; author: string; createdAt: string; publishedAt: string | null; } | undefined; release: { id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; author: string; createdAt: string; publishedAt: string | null; assets: { name: string; downloadUrl: string; size: number; downloadCount: number; }[]; }; }>; declare const getCiFailureContextInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; ref: z.ZodString; maxFailedRuns: z.ZodDefault>; maxFailedJobs: z.ZodDefault>; }, z.core.$strip>; declare const getCiFailureContextDescription = "Diagnose CI failures for a ref in one call — combined status, failing check runs, recent failed workflow runs, and failed jobs/steps from the latest failure"; declare function getCiFailureContextCore({ token, owner, repo, ref, maxFailedRuns, maxFailedJobs }: { token: string; owner: string; repo: string; ref: string; maxFailedRuns: number; maxFailedJobs: number; }): Promise<{ latestFailure?: { run: { id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; event: string; url: string; actor: string | undefined; createdAt: string; updatedAt: string; runNumber: number; runAttempt: number | undefined; }; jobs: Array<{ id: number; name: string; status: string; conclusion: string | null; url: string | null; startedAt: string; completedAt: string | null; steps?: Array<{ name: string; status: string; conclusion: string | null; number: number; startedAt?: string | null; completedAt?: string | null; }>; }>; } | undefined; ref: string; combinedStatus: { state: string; totalCount: number; statuses: { context: string; state: string; description: string | null; url: string | null; }[]; }; failedCheckRuns: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string | null; completedAt: string | null; }[]; checkRunTotalCount: number; recentFailedRuns: { id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; event: string; url: string; actor: string | undefined; createdAt: string; updatedAt: string; runNumber: number; runAttempt: number | undefined; }[]; }>; declare namespace checks_d_exports { export { getCombinedStatusCore, getCombinedStatusDescription, getCombinedStatusInputSchema, listCheckRunsCore, listCheckRunsDescription, listCheckRunsInputSchema }; } declare const listCheckRunsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; ref: z.ZodString; perPage: z.ZodDefault>; page: z.ZodDefault>; maxPages: z.ZodOptional; }, z.core.$strip>; declare const listCheckRunsDescription = "List check runs (Checks API — GitHub Actions and other CI providers) for a commit, branch, or tag. When hasMore, pass nextPage or raise maxPages — do not repeat the same call."; declare function listCheckRunsCore({ token, owner, repo, ref, perPage, page, maxPages }: { token: string; owner: string; repo: string; ref: string; perPage: number; page?: number; maxPages?: number; }): Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; checkRuns: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string | null; completedAt: string | null; }[]; }>; declare const getCombinedStatusInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; ref: z.ZodString; }, z.core.$strip>; declare const getCombinedStatusDescription = "Get the combined commit status (Statuses API — legacy CI integrations) for a commit, branch, or tag"; declare function getCombinedStatusCore({ token, owner, repo, ref }: { token: string; owner: string; repo: string; ref: string; }): Promise<{ state: string; totalCount: number; statuses: { context: string; state: string; description: string | null; url: string | null; }[]; }>; declare namespace commits_d_exports { export { BLAME_QUERY, compareCommitsCore, compareCommitsDescription, compareCommitsInputSchema, getBlameCore, getBlameDescription, getBlameInputSchema, getCommitCore, getCommitDescription, getCommitInputSchema, listCommitsCore, listCommitsDescription, listCommitsInputSchema }; } declare const BLAME_QUERY = "\n query ($owner: String!, $name: String!, $expression: String!, $path: String!) {\n repository(owner: $owner, name: $name) {\n object(expression: $expression) {\n ... on Commit {\n oid\n blame(path: $path) {\n ranges {\n startingLine\n endingLine\n age\n commit {\n oid\n abbreviatedOid\n messageHeadline\n authoredDate\n url\n author {\n name\n email\n user {\n login\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"; declare const listCommitsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; path: z.ZodOptional; sha: z.ZodOptional; author: z.ZodOptional; since: z.ZodOptional; until: z.ZodOptional; perPage: z.ZodDefault>; page: z.ZodDefault>; maxPages: z.ZodOptional; }, z.core.$strip>; declare const listCommitsDescription = "List commits for a GitHub repository. Filter with path, author, since, or until instead of paging the full history. When hasMore, pass nextPage or raise maxPages — do not repeat the same call. For line-by-line attribution, use getBlame."; declare function listCommitsCore({ token, owner, repo, path, sha, author, since, until, perPage, page, maxPages }: { token: string; owner: string; repo: string; path?: string; sha?: string; author?: string; since?: string; until?: string; perPage: number; page?: number; maxPages?: number; }): Promise>; declare const getCommitInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; ref: z.ZodString; includePatch: z.ZodDefault>; }, z.core.$strip>; declare const getCommitDescription = "Get detailed information about a specific commit, including the list of files changed with additions and deletions. Patches are omitted by default — set includePatch true to include diffs"; declare function getCommitCore({ token, owner, repo, ref, includePatch }: { token: string; owner: string; repo: string; ref: string; includePatch: boolean; }): Promise<{ sha: string; message: string; author: string | undefined; authorLogin: string | undefined; date: string | undefined; url: string; stats: { additions: number | undefined; deletions: number | undefined; total: number | undefined; } | null; files: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; }[] | undefined; }>; declare const getBlameInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; path: z.ZodString; ref: z.ZodOptional; line: z.ZodOptional; lineStart: z.ZodOptional; lineEnd: z.ZodOptional; }, z.core.$strip>; declare const getBlameDescription = "Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). Returns contiguous ranges mapping lines to the commits that last modified them — use this to see who introduced a line and when (GitHub GraphQL API)."; declare function getBlameCore({ token, owner, repo, path, ref, line, lineStart, lineEnd }: { token: string; owner: string; repo: string; path: string; ref?: string; line?: number; lineStart?: number; lineEnd?: number; }): Promise<{ error: string; ref?: undefined; tipSha?: undefined; path?: undefined; rangeCount?: undefined; ranges?: undefined; } | { ref: string; tipSha: string; path: string; rangeCount: number; ranges: { startingLine: number; endingLine: number; age: number; commit: { sha: string; abbreviatedSha: string; messageHeadline: string; authoredDate: string; url: string; authorName: string | null; authorEmail: string | null; authorLogin: string | null; }; }[]; error?: undefined; }>; declare const compareCommitsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; base: z.ZodString; head: z.ZodString; includePatch: z.ZodDefault>; }, z.core.$strip>; declare const compareCommitsDescription = "Compare two branches, tags, or commits — shows ahead/behind counts, the commits in between, and the files that differ. Patches are omitted by default — set includePatch true to include diffs"; declare function compareCommitsCore({ token, owner, repo, base, head, includePatch }: { token: string; owner: string; repo: string; base: string; head: string; includePatch: boolean; }): Promise<{ status: "diverged" | "ahead" | "behind" | "identical"; aheadBy: number; behindBy: number; totalCommits: number; url: string; commits: { sha: string; message: string; author: string | undefined; authorLogin: string | undefined; }[]; files: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; }[] | undefined; }>; declare namespace discussions_d_exports { export { ADD_DISCUSSION_COMMENT_MUTATION, DISCUSSION_CATEGORIES_QUERY, DISCUSSION_ID_QUERY, GET_DISCUSSION_QUERY, LIST_DISCUSSIONS_QUERY, addDiscussionCommentCore, addDiscussionCommentDescription, addDiscussionCommentInputSchema, getDiscussionCore, getDiscussionDescription, getDiscussionInputSchema, listDiscussionsCore, listDiscussionsDescription, listDiscussionsInputSchema }; } declare const DISCUSSION_CATEGORIES_QUERY = "\n query ($owner: String!, $name: String!) {\n repository(owner: $owner, name: $name) {\n discussionCategories(first: 100) {\n nodes {\n id\n name\n }\n }\n }\n }\n"; declare const LIST_DISCUSSIONS_QUERY = "\n query ($owner: String!, $name: String!, $first: Int!, $after: String, $categoryId: ID) {\n repository(owner: $owner, name: $name) {\n discussions(first: $first, after: $after, categoryId: $categoryId, orderBy: { field: UPDATED_AT, direction: DESC }) {\n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n id\n number\n title\n url\n createdAt\n updatedAt\n isAnswered\n author {\n login\n }\n category {\n name\n }\n }\n }\n }\n }\n"; declare const GET_DISCUSSION_QUERY = "\n query ($owner: String!, $name: String!, $number: Int!) {\n repository(owner: $owner, name: $name) {\n discussion(number: $number) {\n id\n number\n title\n body\n url\n createdAt\n updatedAt\n isAnswered\n author {\n login\n }\n category {\n name\n }\n comments {\n totalCount\n }\n }\n }\n }\n"; declare const DISCUSSION_ID_QUERY = "\n query ($owner: String!, $name: String!, $number: Int!) {\n repository(owner: $owner, name: $name) {\n discussion(number: $number) {\n id\n }\n }\n }\n"; declare const ADD_DISCUSSION_COMMENT_MUTATION = "\n mutation ($discussionId: ID!, $body: String!) {\n addDiscussionComment(input: { discussionId: $discussionId, body: $body }) {\n comment {\n id\n url\n body\n createdAt\n author {\n login\n }\n }\n }\n }\n"; declare const listDiscussionsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; category: z.ZodOptional; perPage: z.ZodDefault>; after: z.ZodOptional; }, z.core.$strip>; declare const listDiscussionsDescription = "List discussions in a GitHub repository, most recently updated first, optionally filtered by category (GitHub GraphQL API)"; declare function listDiscussionsCore({ token, owner, repo, category, perPage, after }: { token: string; owner: string; repo: string; category?: string; perPage: number; after?: string; }): Promise<{ error: string; hasNextPage?: undefined; endCursor?: undefined; discussions?: undefined; } | { hasNextPage: boolean; endCursor: string | null; discussions: { id: string; number: number; title: string; url: string; author: string | null; category: string | null; answerChosen: boolean | null; createdAt: string; updatedAt: string; }[]; error?: undefined; }>; declare const getDiscussionInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; discussionNumber: z.ZodNumber; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getDiscussionDescription = "Get a GitHub discussion by number. Body is truncated by default (detail: summary) — set detail full for the complete text (GitHub GraphQL API)"; declare function getDiscussionCore({ token, owner, repo, discussionNumber, detail }: { token: string; owner: string; repo: string; discussionNumber: number; detail?: DetailLevel; }): Promise<{ error: string; id?: undefined; number?: undefined; title?: undefined; body?: undefined; url?: undefined; author?: undefined; category?: undefined; answerChosen?: undefined; commentsCount?: undefined; createdAt?: undefined; updatedAt?: undefined; } | { id: string; number: number; title: string; body: string | null | undefined; url: string; author: string | null; category: string | null; answerChosen: boolean | null; commentsCount: number; createdAt: string; updatedAt: string; error?: undefined; }>; declare const addDiscussionCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; discussionNumber: z.ZodNumber; body: z.ZodString; }, z.core.$strip>; declare const addDiscussionCommentDescription = "Add a comment to a GitHub discussion (GitHub GraphQL API)"; /** Not idempotent — each call adds another comment. */ declare function addDiscussionCommentCore({ token, owner, repo, discussionNumber, body }: { token: string; owner: string; repo: string; discussionNumber: number; body: string; }): Promise<{ error: string; id?: undefined; url?: undefined; body?: undefined; author?: undefined; createdAt?: undefined; } | { id: string; url: string; body: string; author: string | null; createdAt: string; error?: undefined; }>; declare namespace gists_d_exports { export { createGistCommentCore, createGistCommentDescription, createGistCommentInputSchema, createGistCore, createGistDescription, createGistInputSchema, deleteGistCore, deleteGistDescription, deleteGistInputSchema, getGistCore, getGistDescription, getGistInputSchema, listGistCommentsCore, listGistCommentsDescription, listGistCommentsInputSchema, listGistsCore, listGistsDescription, listGistsInputSchema, updateGistCore, updateGistDescription, updateGistInputSchema }; } declare const listGistsInputSchema: z.ZodObject<{ username: z.ZodOptional; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listGistsDescription = "List gists for the authenticated user or a specific user. When hasMore, pass nextPage — do not repeat the same call."; declare function listGistsCore({ token, username, perPage, page }: { token: string; username?: string; perPage: number; page: number; }): Promise>; declare const getGistInputSchema: z.ZodObject<{ gistId: z.ZodString; }, z.core.$strip>; declare const getGistDescription = "Get a gist by ID, including file contents"; declare function getGistCore({ token, gistId }: { token: string; gistId: string; }): Promise<{ id: string | undefined; description: string | null | undefined; public: boolean | undefined; url: string | undefined; owner: string | undefined; files: { filename: string | undefined; language: string | undefined; size: number | undefined; content: string | undefined; }[]; comments: number | undefined; createdAt: string | undefined; updatedAt: string | undefined; }>; declare const listGistCommentsInputSchema: z.ZodObject<{ gistId: z.ZodString; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listGistCommentsDescription = "List comments on a gist. When hasMore, pass nextPage — do not repeat the same call."; declare function listGistCommentsCore({ token, gistId, perPage, page }: { token: string; gistId: string; perPage: number; page: number; }): Promise>; declare const createGistInputSchema: z.ZodObject<{ description: z.ZodOptional; files: z.ZodRecord>; isPublic: z.ZodDefault>; }, z.core.$strip>; declare const createGistDescription = "Create a new gist with one or more files"; /** Not idempotent — each call creates a new gist. */ declare function createGistCore({ token, description, files, isPublic }: { token: string; description?: string; files: Record; isPublic: boolean; }): Promise<{ id: string | undefined; description: string | null | undefined; public: boolean | undefined; url: string | undefined; files: string[]; owner: string | undefined; }>; declare const updateGistInputSchema: z.ZodObject<{ gistId: z.ZodString; description: z.ZodOptional; files: z.ZodOptional>>; filesToDelete: z.ZodOptional>; }, z.core.$strip>; declare const updateGistDescription = "Update an existing gist — edit description, update files, or remove files"; /** Not idempotent — each call applies a new revision. */ declare function updateGistCore({ token, gistId, description, files, filesToDelete }: { token: string; gistId: string; description?: string; files?: Record; filesToDelete?: string[]; }): Promise<{ id: string | undefined; description: string | null | undefined; url: string | undefined; files: string[]; }>; declare const deleteGistInputSchema: z.ZodObject<{ gistId: z.ZodString; }, z.core.$strip>; declare const deleteGistDescription = "Delete a gist permanently"; /** Not idempotent — deleting an already-deleted gist returns 404 from GitHub. */ declare function deleteGistCore({ token, gistId }: { token: string; gistId: string; }): Promise<{ deleted: boolean; gistId: string; }>; declare const createGistCommentInputSchema: z.ZodObject<{ gistId: z.ZodString; body: z.ZodString; }, z.core.$strip>; declare const createGistCommentDescription = "Add a comment to a gist"; /** Not idempotent — each call adds another comment. */ declare function createGistCommentCore({ token, gistId, body }: { token: string; gistId: string; body: string; }): Promise<{ id: number; url: string; body: string; author: string | undefined; createdAt: string; }>; declare namespace issues_d_exports { export { addAssigneesCore, addAssigneesDescription, addAssigneesInputSchema, addIssueCommentCore, addIssueCommentDescription, addIssueCommentInputSchema, addLabelsCore, addLabelsDescription, addLabelsInputSchema, closeIssueCore, closeIssueDescription, closeIssueInputSchema, createIssueCore, createIssueDescription, createIssueInputSchema, createLabelCore, createLabelDescription, createLabelInputSchema, deleteIssueCommentCore, deleteIssueCommentDescription, deleteIssueCommentInputSchema, deleteLabelCore, deleteLabelDescription, deleteLabelInputSchema, getIssueCore, getIssueDescription, getIssueInputSchema, listIssueCommentsCore, listIssueCommentsDescription, listIssueCommentsInputSchema, listIssuesCore, listIssuesDescription, listIssuesInputSchema, listLabelsCore, listLabelsDescription, listLabelsInputSchema, removeAssigneesCore, removeAssigneesDescription, removeAssigneesInputSchema, removeLabelCore, removeLabelDescription, removeLabelInputSchema, updateIssueCommentCore, updateIssueCommentDescription, updateIssueCommentInputSchema, updateIssueCore, updateIssueDescription, updateIssueInputSchema, updateLabelCore, updateLabelDescription, updateLabelInputSchema }; } declare const listIssuesInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; state: z.ZodDefault>>; labels: z.ZodOptional; perPage: z.ZodDefault>; page: z.ZodDefault>; maxPages: z.ZodOptional; }, z.core.$strip>; declare const listIssuesDescription = "List issues for a GitHub repository (excludes pull requests). When hasMore, pass nextPage or raise maxPages — do not repeat the same call."; declare function listIssuesCore({ token, owner, repo, state, labels, perPage, page, maxPages }: { token: string; owner: string; repo: string; state: 'open' | 'closed' | 'all'; labels?: string; perPage: number; page?: number; maxPages?: number; }): Promise>; declare const getIssueInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getIssueDescription = "Get detailed information about a specific issue. Body is truncated by default (detail: summary) — set detail full for the complete description"; declare function getIssueCore({ token, owner, repo, issueNumber, detail }: { token: string; owner: string; repo: string; issueNumber: number; detail?: DetailLevel; }): Promise<{ number: number; title: string; body: string | null | undefined; state: string; url: string; author: string | undefined; assignees: string[] | undefined; labels: (string | undefined)[]; comments: number; createdAt: string; updatedAt: string; closedAt: string | null; }>; declare const listIssueCommentsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; perPage: z.ZodDefault>; page: z.ZodDefault>; detail: z.ZodDefault>>; }, z.core.$strip>; declare const listIssueCommentsDescription = "List comments on a GitHub issue. Bodies are truncated by default (detail: summary). When hasMore, pass nextPage — do not repeat the same call."; declare function listIssueCommentsCore({ token, owner, repo, issueNumber, perPage, page, detail }: { token: string; owner: string; repo: string; issueNumber: number; perPage: number; page: number; detail?: DetailLevel; }): Promise>; declare const createIssueInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; title: z.ZodString; body: z.ZodOptional; labels: z.ZodOptional>; assignees: z.ZodOptional>; }, z.core.$strip>; declare const createIssueDescription = "Create a new issue in a GitHub repository"; /** Not idempotent — each call creates a new issue. */ declare function createIssueCore({ token, owner, repo, title, body, labels, assignees }: { token: string; owner: string; repo: string; title: string; body?: string; labels?: string[]; assignees?: string[]; }): Promise<{ number: number; title: string; url: string; state: string; labels: (string | undefined)[]; }>; declare const addIssueCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; body: z.ZodString; }, z.core.$strip>; declare const addIssueCommentDescription = "Add a comment to a GitHub issue"; /** Not idempotent — each call adds another comment. */ declare function addIssueCommentCore({ token, owner, repo, issueNumber, body }: { token: string; owner: string; repo: string; issueNumber: number; body: string; }): Promise<{ id: number; url: string; body: string | undefined; author: string | undefined; createdAt: string; }>; declare const closeIssueInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; stateReason: z.ZodDefault>>; }, z.core.$strip>; declare const closeIssueDescription = "Close an open GitHub issue"; /** Idempotent when the issue is already closed. */ declare function closeIssueCore({ token, owner, repo, issueNumber, stateReason }: { token: string; owner: string; repo: string; issueNumber: number; stateReason: 'completed' | 'not_planned'; }): Promise<{ number: number; title: string; state: string; url: string; closedAt: string | null; }>; declare const updateIssueInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; title: z.ZodOptional; body: z.ZodOptional; state: z.ZodOptional>; stateReason: z.ZodOptional>; labels: z.ZodOptional>; milestone: z.ZodOptional>; assignees: z.ZodOptional>; }, z.core.$strip>; declare const updateIssueDescription = "Update a GitHub issue — title, body, labels, milestone, or assignees. Set state open to reopen a closed issue, or closed to close it"; /** Not idempotent — each call applies a new revision. */ declare function updateIssueCore({ token, owner, repo, issueNumber, title, body, state, stateReason, labels, milestone, assignees }: { token: string; owner: string; repo: string; issueNumber: number; title?: string; body?: string; state?: 'open' | 'closed'; stateReason?: 'completed' | 'not_planned' | 'reopened'; labels?: string[]; milestone?: number | null; assignees?: string[]; }): Promise<{ number: number; title: string; state: string; url: string; labels: (string | undefined)[]; assignees: string[] | undefined; milestone: number | null; closedAt: string | null; updatedAt: string; }>; declare const updateIssueCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; commentId: z.ZodNumber; body: z.ZodString; }, z.core.$strip>; declare const updateIssueCommentDescription = "Update the body of a comment on a GitHub issue"; /** Not idempotent — each call applies a new revision. */ declare function updateIssueCommentCore({ token, owner, repo, commentId, body }: { token: string; owner: string; repo: string; commentId: number; body: string; }): Promise<{ id: number; url: string; body: string | undefined; updatedAt: string; }>; declare const deleteIssueCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; commentId: z.ZodNumber; }, z.core.$strip>; declare const deleteIssueCommentDescription = "Delete a comment from a GitHub issue permanently"; /** Not idempotent — deleting an already-deleted comment returns 404 from GitHub. */ declare function deleteIssueCommentCore({ token, owner, repo, commentId }: { token: string; owner: string; repo: string; commentId: number; }): Promise<{ deleted: boolean; commentId: number; }>; declare const listLabelsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listLabelsDescription = "List labels available in a GitHub repository. When hasMore, pass nextPage — do not repeat the same call."; declare function listLabelsCore({ token, owner, repo, perPage, page }: { token: string; owner: string; repo: string; perPage: number; page: number; }): Promise>; declare const addLabelsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; labels: z.ZodArray; }, z.core.$strip>; declare const addLabelsDescription = "Add labels to an issue or pull request"; /** Not idempotent — re-adding labels is a no-op on GitHub but still mutates. */ declare function addLabelsCore({ token, owner, repo, issueNumber, labels }: { token: string; owner: string; repo: string; issueNumber: number; labels: string[]; }): Promise<{ name: string; color: string; description: string | null; }[]>; declare const removeLabelInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; label: z.ZodString; }, z.core.$strip>; declare const removeLabelDescription = "Remove a label from an issue or pull request"; /** Not idempotent — removing a missing label returns 404 from GitHub. */ declare function removeLabelCore({ token, owner, repo, issueNumber, label }: { token: string; owner: string; repo: string; issueNumber: number; label: string; }): Promise<{ removed: boolean; label: string; issueNumber: number; }>; declare const createLabelInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; name: z.ZodString; color: z.ZodString; description: z.ZodOptional; }, z.core.$strip>; declare const createLabelDescription = "Create a label in a GitHub repository"; /** Not idempotent — creating a label that already exists returns 422 from GitHub. */ declare function createLabelCore({ token, owner, repo, name, color, description }: { token: string; owner: string; repo: string; name: string; color: string; description?: string; }): Promise<{ name: string; color: string; description: string | null; }>; declare const updateLabelInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; name: z.ZodString; newName: z.ZodOptional; color: z.ZodOptional; description: z.ZodOptional>; }, z.core.$strip>; declare const updateLabelDescription = "Update a label in a GitHub repository — name, color, or description"; /** Not idempotent — each call applies a new revision. */ declare function updateLabelCore({ token, owner, repo, name, newName, color, description }: { token: string; owner: string; repo: string; name: string; newName?: string; color?: string; description?: string | null; }): Promise<{ name: string; color: string; description: string | null; }>; declare const deleteLabelInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; name: z.ZodString; }, z.core.$strip>; declare const deleteLabelDescription = "Delete a label from a GitHub repository permanently"; /** Not idempotent — deleting a missing label returns 404 from GitHub. */ declare function deleteLabelCore({ token, owner, repo, name }: { token: string; owner: string; repo: string; name: string; }): Promise<{ deleted: boolean; name: string; }>; declare const addAssigneesInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; assignees: z.ZodArray; }, z.core.$strip>; declare const addAssigneesDescription = "Assign users to an issue or pull request"; /** Not idempotent — re-adding an existing assignee is a no-op on GitHub but still mutates. */ declare function addAssigneesCore({ token, owner, repo, issueNumber, assignees }: { token: string; owner: string; repo: string; issueNumber: number; assignees: string[]; }): Promise<{ number: number; assignees: string[] | undefined; }>; declare const removeAssigneesInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; assignees: z.ZodArray; }, z.core.$strip>; declare const removeAssigneesDescription = "Remove assignees from an issue or pull request"; /** Idempotent — removing an assignee that is not assigned is a no-op on GitHub. */ declare function removeAssigneesCore({ token, owner, repo, issueNumber, assignees }: { token: string; owner: string; repo: string; issueNumber: number; assignees: string[]; }): Promise<{ number: number; assignees: string[] | undefined; }>; declare namespace notifications_d_exports { export { listNotificationsCore, listNotificationsDescription, listNotificationsInputSchema, markNotificationReadCore, markNotificationReadDescription, markNotificationReadInputSchema }; } declare const listNotificationsInputSchema: z.ZodObject<{ all: z.ZodDefault>; participating: z.ZodDefault>; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listNotificationsDescription = "List notification threads for the authenticated user. Unread only by default — set all true to include read threads. Requires a token with notifications access. When hasMore, pass nextPage — do not repeat the same call."; declare function listNotificationsCore({ token, all, participating, perPage, page }: { token: string; all: boolean; participating: boolean; perPage: number; page: number; }): Promise>; declare const markNotificationReadInputSchema: z.ZodObject<{ threadId: z.ZodString; }, z.core.$strip>; declare const markNotificationReadDescription = "Mark a single notification thread as read"; /** Idempotent — marking an already-read thread is a no-op on GitHub. */ declare function markNotificationReadCore({ token, threadId }: { token: string; threadId: string; }): Promise<{ marked: boolean; threadId: string; }>; declare namespace pull_requests_d_exports { export { addPullRequestCommentCore, addPullRequestCommentDescription, addPullRequestCommentInputSchema, createPullRequestCore, createPullRequestDescription, createPullRequestInputSchema, createPullRequestReviewCore, createPullRequestReviewDescription, createPullRequestReviewInputSchema, deletePullRequestCommentCore, deletePullRequestCommentDescription, deletePullRequestCommentInputSchema, getPullRequestCore, getPullRequestDescription, getPullRequestInputSchema, listPullRequestFilesCore, listPullRequestFilesDescription, listPullRequestFilesInputSchema, listPullRequestReviewThreadsCore, listPullRequestReviewThreadsDescription, listPullRequestReviewThreadsInputSchema, listPullRequestReviewsCore, listPullRequestReviewsDescription, listPullRequestReviewsInputSchema, listPullRequestsCore, listPullRequestsDescription, listPullRequestsInputSchema, mergePullRequestCore, mergePullRequestDescription, mergePullRequestInputSchema, replyToReviewCommentCore, replyToReviewCommentDescription, replyToReviewCommentInputSchema, requestReviewersCore, requestReviewersDescription, requestReviewersInputSchema, resolveReviewThreadCore, resolveReviewThreadDescription, resolveReviewThreadInputSchema, updatePullRequestCommentCore, updatePullRequestCommentDescription, updatePullRequestCommentInputSchema, updatePullRequestCore, updatePullRequestDescription, updatePullRequestInputSchema }; } declare const listPullRequestsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; state: z.ZodDefault>>; perPage: z.ZodDefault>; page: z.ZodDefault>; maxPages: z.ZodOptional; }, z.core.$strip>; declare const listPullRequestsDescription = "List pull requests for a GitHub repository. When hasMore, pass nextPage or raise maxPages — do not repeat the same call."; declare function listPullRequestsCore({ token, owner, repo, state, perPage, page, maxPages }: { token: string; owner: string; repo: string; state: 'open' | 'closed' | 'all'; perPage: number; page?: number; maxPages?: number; }): Promise>; declare const getPullRequestInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getPullRequestDescription = "Get detailed information about a specific pull request. Body is truncated by default (detail: summary) — set detail full for the complete description"; declare function getPullRequestCore({ token, owner, repo, pullNumber, detail }: { token: string; owner: string; repo: string; pullNumber: number; detail?: DetailLevel; }): Promise<{ number: number; title: string; body: string | null | undefined; state: "open" | "closed"; url: string; author: string; branch: string; headSha: string; base: string; draft: boolean | undefined; merged: boolean; mergeable: boolean | null; additions: number; deletions: number; changedFiles: number; createdAt: string; updatedAt: string; mergedAt: string | null; }>; declare const createPullRequestInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; title: z.ZodString; body: z.ZodOptional; head: z.ZodString; base: z.ZodString; draft: z.ZodDefault>; }, z.core.$strip>; declare const createPullRequestDescription = "Create a new pull request in a GitHub repository"; /** Not idempotent — each call creates a new pull request. */ declare function createPullRequestCore({ token, owner, repo, title, body, head, base, draft }: { token: string; owner: string; repo: string; title: string; body?: string; head: string; base: string; draft: boolean; }): Promise<{ number: number; title: string; url: string; state: "open" | "closed"; draft: boolean | undefined; branch: string; base: string; }>; declare const updatePullRequestInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; title: z.ZodOptional; body: z.ZodOptional; state: z.ZodOptional>; base: z.ZodOptional; draft: z.ZodOptional; }, z.core.$strip>; declare const updatePullRequestDescription = "Update a pull request — title, body, state, base branch, or draft status. Draft toggling uses the GitHub GraphQL API since the REST update endpoint does not support it"; /** Not idempotent — each call applies a new revision. */ declare function updatePullRequestCore({ token, owner, repo, pullNumber, title, body, state, base, draft }: { token: string; owner: string; repo: string; pullNumber: number; title?: string; body?: string; state?: 'open' | 'closed'; base?: string; draft?: boolean; }): Promise<{ number: number; title: string; state: "open" | "closed"; draft: boolean | undefined; url: string; base: string; updatedAt: string; }>; declare const mergePullRequestInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; commitTitle: z.ZodOptional; commitMessage: z.ZodOptional; mergeMethod: z.ZodDefault>>; }, z.core.$strip>; declare const mergePullRequestDescription = "Merge a pull request"; /** Not idempotent — merging an already-merged PR returns an error from GitHub. */ declare function mergePullRequestCore({ token, owner, repo, pullNumber, commitTitle, commitMessage, mergeMethod, coAuthors }: { token: string; owner: string; repo: string; pullNumber: number; commitTitle?: string; commitMessage?: string; mergeMethod: 'merge' | 'squash' | 'rebase'; coAuthors?: CommitIdentity[]; }): Promise<{ merged: boolean; message: string; sha: string; }>; declare const addPullRequestCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; body: z.ZodString; }, z.core.$strip>; declare const addPullRequestCommentDescription = "Add a comment to a pull request"; /** Not idempotent — each call adds another comment. */ declare function addPullRequestCommentCore({ token, owner, repo, pullNumber, body }: { token: string; owner: string; repo: string; pullNumber: number; body: string; }): Promise<{ id: number; url: string; body: string | undefined; author: string | undefined; createdAt: string; }>; declare const updatePullRequestCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; commentId: z.ZodNumber; body: z.ZodString; }, z.core.$strip>; declare const updatePullRequestCommentDescription = "Update the body of a comment on a pull request"; /** Not idempotent — each call applies a new revision. */ declare function updatePullRequestCommentCore({ token, owner, repo, commentId, body }: { token: string; owner: string; repo: string; commentId: number; body: string; }): Promise<{ id: number; url: string; body: string | undefined; updatedAt: string; }>; declare const deletePullRequestCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; commentId: z.ZodNumber; }, z.core.$strip>; declare const deletePullRequestCommentDescription = "Delete a comment from a pull request permanently"; /** Not idempotent — deleting an already-deleted comment returns 404 from GitHub. */ declare function deletePullRequestCommentCore({ token, owner, repo, commentId }: { token: string; owner: string; repo: string; commentId: number; }): Promise<{ deleted: boolean; commentId: number; }>; declare const listPullRequestFilesInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; includePatch: z.ZodDefault>; filenames: z.ZodOptional>; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listPullRequestFilesDescription = "List files changed in a pull request with status and stats. Patches are omitted by default — set includePatch true (optionally with filenames) to fetch diffs. When hasMore, pass nextPage — do not repeat the same call."; declare function listPullRequestFilesCore({ token, owner, repo, pullNumber, includePatch, filenames, perPage, page }: { token: string; owner: string; repo: string; pullNumber: number; includePatch: boolean; filenames?: string[]; perPage: number; page: number; }): Promise>; declare const listPullRequestReviewsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listPullRequestReviewsDescription = "List reviews on a pull request (approvals, change requests, and comments). When hasMore, pass nextPage — do not repeat the same call."; declare function listPullRequestReviewsCore({ token, owner, repo, pullNumber, perPage, page }: { token: string; owner: string; repo: string; pullNumber: number; perPage: number; page: number; }): Promise>; declare const createPullRequestReviewInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; body: z.ZodOptional; event: z.ZodEnum<{ APPROVE: "APPROVE"; REQUEST_CHANGES: "REQUEST_CHANGES"; COMMENT: "COMMENT"; }>; comments: z.ZodOptional; side: z.ZodOptional>; }, z.core.$strip>>>; }, z.core.$strip>; declare const createPullRequestReviewDescription = "Submit a pull request review — approve, request changes, or comment with optional inline comments on specific lines"; /** Not idempotent — each call submits a new review. */ declare function createPullRequestReviewCore({ token, owner, repo, pullNumber, body, event, comments }: { token: string; owner: string; repo: string; pullNumber: number; body?: string; event: 'APPROVE' | 'REQUEST_CHANGES' | 'COMMENT'; comments?: Array<{ path: string; body: string; line?: number; side?: 'LEFT' | 'RIGHT'; }>; }): Promise<{ id: number; state: string; body: string; url: string; author: string | undefined; submittedAt: string | undefined; }>; declare const listPullRequestReviewThreadsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; status: z.ZodDefault>>; detail: z.ZodDefault>>; perPage: z.ZodDefault>; after: z.ZodOptional; }, z.core.$strip>; declare const listPullRequestReviewThreadsDescription = "List review threads on a pull request with their comments, resolution state, and the IDs needed to reply (commentId) or resolve (threadId). Unresolved threads only by default (GitHub GraphQL API)"; declare function listPullRequestReviewThreadsCore({ token, owner, repo, pullNumber, status, detail, perPage, after }: { token: string; owner: string; repo: string; pullNumber: number; status: 'unresolved' | 'all'; detail: DetailLevel; perPage: number; after?: string; }): Promise<{ error: string; totalCount?: undefined; returnedCount?: undefined; hasNextPage?: undefined; endCursor?: undefined; threads?: undefined; } | { totalCount: number; returnedCount: number; hasNextPage: boolean; endCursor: string | null; threads: { threadId: string; isResolved: boolean; isOutdated: boolean; path: string | null; line: number | null; startLine: number | null; resolvedBy: string | null; commentCount: number; comments: { commentId: number | null; author: string | null; body: string | null | undefined; createdAt: string; }[]; }[]; error?: undefined; }>; declare const replyToReviewCommentInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; commentId: z.ZodNumber; body: z.ZodString; }, z.core.$strip>; declare const replyToReviewCommentDescription = "Reply to a pull request review comment, adding a message to its review thread"; /** Not idempotent — each call posts a new reply. */ declare function replyToReviewCommentCore({ token, owner, repo, pullNumber, commentId, body }: { token: string; owner: string; repo: string; pullNumber: number; commentId: number; body: string; }): Promise<{ id: number; url: string; author: string; createdAt: string; }>; declare const resolveReviewThreadInputSchema: z.ZodObject<{ threadId: z.ZodString; }, z.core.$strip>; declare const resolveReviewThreadDescription = "Mark a pull request review thread as resolved"; /** Idempotent — resolving an already-resolved thread is a no-op on GitHub. */ declare function resolveReviewThreadCore({ token, threadId }: { token: string; threadId: string; }): Promise<{ error: string; threadId?: undefined; isResolved?: undefined; } | { threadId: string; isResolved: boolean; error?: undefined; }>; declare const requestReviewersInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; pullNumber: z.ZodNumber; reviewers: z.ZodOptional>; teamReviewers: z.ZodOptional>; }, z.core.$strip>; declare const requestReviewersDescription = "Request reviews from users or teams on a pull request"; /** Not idempotent — re-requesting an existing reviewer is a no-op on GitHub but still mutates. */ declare function requestReviewersCore({ token, owner, repo, pullNumber, reviewers, teamReviewers }: { token: string; owner: string; repo: string; pullNumber: number; reviewers?: string[]; teamReviewers?: string[]; }): Promise<{ number: number; url: string; requestedReviewers: string[] | undefined; requestedTeams: string[] | undefined; }>; declare namespace reactions_d_exports { export { ReactionContent, addCommentReactionCore, addCommentReactionDescription, addCommentReactionInputSchema, addIssueReactionCore, addIssueReactionDescription, addIssueReactionInputSchema, listCommentReactionsCore, listCommentReactionsDescription, listCommentReactionsInputSchema, listIssueReactionsCore, listIssueReactionsDescription, listIssueReactionsInputSchema }; } declare const REACTION_CONTENTS: readonly ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"]; type ReactionContent = typeof REACTION_CONTENTS[number]; declare const listIssueReactionsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; content: z.ZodOptional>; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listIssueReactionsDescription = "List reactions on an issue or pull request conversation, with per-emoji counts for the returned page. When hasMore, pass nextPage — do not repeat the same call."; declare function listIssueReactionsCore({ token, owner, repo, issueNumber, content, perPage, page }: { token: string; owner: string; repo: string; issueNumber: number; content?: ReactionContent; perPage: number; page: number; }): Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; total: number; counts: Record; reactions: { content: string; user: string | undefined; }[]; }>; declare const addIssueReactionInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; issueNumber: z.ZodNumber; content: z.ZodEnum<{ "+1": "+1"; [-1]: "-1"; laugh: "laugh"; confused: "confused"; heart: "heart"; hooray: "hooray"; rocket: "rocket"; eyes: "eyes"; }>; }, z.core.$strip>; declare const addIssueReactionDescription = "React to an issue or pull request with an emoji. Prefer this over posting a comment to acknowledge a report without adding noise to the thread"; /** Idempotent — GitHub returns the existing reaction when the user already reacted with the same content. */ declare function addIssueReactionCore({ token, owner, repo, issueNumber, content }: { token: string; owner: string; repo: string; issueNumber: number; content: ReactionContent; }): Promise<{ id: number; content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; user: string | undefined; issueNumber: number; }>; declare const listCommentReactionsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; commentId: z.ZodNumber; content: z.ZodOptional>; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listCommentReactionsDescription = "List reactions on an issue or pull request comment, with per-emoji counts for the returned page. When hasMore, pass nextPage — do not repeat the same call."; declare function listCommentReactionsCore({ token, owner, repo, commentId, content, perPage, page }: { token: string; owner: string; repo: string; commentId: number; content?: ReactionContent; perPage: number; page: number; }): Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; total: number; counts: Record; reactions: { content: string; user: string | undefined; }[]; }>; declare const addCommentReactionInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; commentId: z.ZodNumber; content: z.ZodEnum<{ "+1": "+1"; [-1]: "-1"; laugh: "laugh"; confused: "confused"; heart: "heart"; hooray: "hooray"; rocket: "rocket"; eyes: "eyes"; }>; }, z.core.$strip>; declare const addCommentReactionDescription = "React to an issue or pull request comment with an emoji. Prefer this over a reply when acknowledging a comment"; /** Idempotent — GitHub returns the existing reaction when the user already reacted with the same content. */ declare function addCommentReactionCore({ token, owner, repo, commentId, content }: { token: string; owner: string; repo: string; commentId: number; content: ReactionContent; }): Promise<{ id: number; content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; user: string | undefined; commentId: number; }>; declare namespace releases_d_exports { export { createReleaseCore, createReleaseDescription, createReleaseInputSchema, deleteReleaseCore, deleteReleaseDescription, deleteReleaseInputSchema, getLatestReleaseCore, getLatestReleaseDescription, getLatestReleaseInputSchema, getReleaseCore, getReleaseDescription, getReleaseInputSchema, listReleasesCore, listReleasesDescription, listReleasesInputSchema, updateReleaseCore, updateReleaseDescription, updateReleaseInputSchema }; } declare const listReleasesInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; perPage: z.ZodDefault>; page: z.ZodDefault>; maxPages: z.ZodOptional; detail: z.ZodDefault>>; }, z.core.$strip>; declare const listReleasesDescription = "List releases for a GitHub repository, newest first (includes drafts and prereleases). Bodies truncated by default (detail: summary). When hasMore, pass nextPage or raise maxPages — do not repeat the same call."; declare function listReleasesCore({ token, owner, repo, perPage, page, maxPages, detail }: { token: string; owner: string; repo: string; perPage: number; page?: number; maxPages?: number; detail?: DetailLevel; }): Promise>; declare const getLatestReleaseInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getLatestReleaseDescription = "Get the latest published release for a GitHub repository (excludes drafts and prereleases). Body truncated by default (detail: summary)"; declare function getLatestReleaseCore({ token, owner, repo, detail }: { token: string; owner: string; repo: string; detail?: DetailLevel; }): Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; author: string; createdAt: string; publishedAt: string | null; assets: { name: string; downloadUrl: string; size: number; downloadCount: number; }[]; }>; declare const getReleaseInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; releaseId: z.ZodNumber; detail: z.ZodDefault>>; }, z.core.$strip>; declare const getReleaseDescription = "Get a specific release by ID, including its assets. Body truncated by default (detail: summary)"; declare function getReleaseCore({ token, owner, repo, releaseId, detail }: { token: string; owner: string; repo: string; releaseId: number; detail?: DetailLevel; }): Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; draft: boolean; prerelease: boolean; url: string; author: string; createdAt: string; publishedAt: string | null; assets: { name: string; downloadUrl: string; size: number; downloadCount: number; }[]; }>; declare const createReleaseInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; tagName: z.ZodString; target: z.ZodOptional; name: z.ZodOptional; body: z.ZodOptional; draft: z.ZodDefault>; prerelease: z.ZodDefault>; generateReleaseNotes: z.ZodDefault>; }, z.core.$strip>; declare const createReleaseDescription = "Create a new release (and its tag if needed) in a GitHub repository"; /** Not idempotent — creating a release with an existing tag name returns an error from GitHub. */ declare function createReleaseCore({ token, owner, repo, tagName, target, name, body, draft, prerelease, generateReleaseNotes }: { token: string; owner: string; repo: string; tagName: string; target?: string; name?: string; body?: string; draft: boolean; prerelease: boolean; generateReleaseNotes: boolean; }): Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; draft: boolean; prerelease: boolean; createdAt: string; }>; declare const updateReleaseInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; releaseId: z.ZodNumber; tagName: z.ZodOptional; target: z.ZodOptional; name: z.ZodOptional; body: z.ZodOptional; draft: z.ZodOptional; prerelease: z.ZodOptional; }, z.core.$strip>; declare const updateReleaseDescription = "Update an existing release — tag, target, title, notes, draft, or prerelease status"; /** Not idempotent — each call applies a new revision. */ declare function updateReleaseCore({ token, owner, repo, releaseId, tagName, target, name, body, draft, prerelease }: { token: string; owner: string; repo: string; releaseId: number; tagName?: string; target?: string; name?: string; body?: string; draft?: boolean; prerelease?: boolean; }): Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; draft: boolean; prerelease: boolean; publishedAt: string | null; }>; declare const deleteReleaseInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; releaseId: z.ZodNumber; }, z.core.$strip>; declare const deleteReleaseDescription = "Delete a release permanently (does not delete the underlying git tag)"; /** Not idempotent — deleting an already-deleted release returns 404 from GitHub. */ declare function deleteReleaseCore({ token, owner, repo, releaseId }: { token: string; owner: string; repo: string; releaseId: number; }): Promise<{ deleted: boolean; releaseId: number; }>; declare namespace search_d_exports { export { searchCodeCore, searchCodeDescription, searchCodeInputSchema, searchIssuesCore, searchIssuesDescription, searchIssuesInputSchema, searchRepositoriesCore, searchRepositoriesDescription, searchRepositoriesInputSchema }; } declare const searchCodeInputSchema: z.ZodObject<{ query: z.ZodString; perPage: z.ZodDefault>; }, z.core.$strip>; declare const searchCodeDescription = "Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search. Results include matching text snippets when GitHub returns them."; declare function searchCodeCore({ token, query, perPage }: { token: string; query: string; perPage: number; }): Promise<{ totalCount: number; items: { name: string; path: string; url: string; repository: string; sha: string; textMatches: { fragment: string; }[] | undefined; }[]; }>; declare const searchRepositoriesInputSchema: z.ZodObject<{ query: z.ZodString; perPage: z.ZodDefault>; sort: z.ZodOptional>; order: z.ZodDefault>>; }, z.core.$strip>; declare const searchRepositoriesDescription = "Search for GitHub repositories by keyword, topic, language, or other qualifiers"; declare function searchRepositoriesCore({ token, query, perPage, sort, order }: { token: string; query: string; perPage: number; sort?: 'stars' | 'forks' | 'help-wanted-issues' | 'updated'; order: 'asc' | 'desc'; }): Promise<{ totalCount: number; items: { name: string; fullName: string; description: string | null; url: string; stars: number; forks: number; language: string | null; topics: string[] | undefined; }[]; }>; declare const searchIssuesInputSchema: z.ZodObject<{ query: z.ZodString; perPage: z.ZodDefault>; sort: z.ZodOptional>; order: z.ZodDefault>>; }, z.core.$strip>; declare const searchIssuesDescription = "Search for issues and pull requests across GitHub using search qualifiers like \"repo:owner/name is:open\""; declare function searchIssuesCore({ token, query, perPage, sort, order }: { token: string; query: string; perPage: number; sort?: 'comments' | 'reactions' | 'created' | 'updated' | 'interactions'; order: 'asc' | 'desc'; }): Promise<{ totalCount: number; items: { number: number; title: string; state: string; url: string; repository: string | undefined; author: string | undefined; labels: (string | undefined)[]; comments: number; createdAt: string; updatedAt: string; isPullRequest: boolean; }[]; }>; declare namespace workflows_d_exports { export { cancelWorkflowRunCore, cancelWorkflowRunDescription, cancelWorkflowRunInputSchema, getWorkflowJobLogsCore, getWorkflowJobLogsDescription, getWorkflowJobLogsInputSchema, getWorkflowRunCore, getWorkflowRunDescription, getWorkflowRunInputSchema, listWorkflowJobsCore, listWorkflowJobsDescription, listWorkflowJobsInputSchema, listWorkflowRunsCore, listWorkflowRunsDescription, listWorkflowRunsInputSchema, listWorkflowsCore, listWorkflowsDescription, listWorkflowsInputSchema, rerunWorkflowRunCore, rerunWorkflowRunDescription, rerunWorkflowRunInputSchema, shapeJobLog, triggerWorkflowCore, triggerWorkflowDescription, triggerWorkflowInputSchema }; } declare const listWorkflowsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listWorkflowsDescription = "List GitHub Actions workflows in a repository. When hasMore, pass nextPage — do not repeat the same call."; declare function listWorkflowsCore({ token, owner, repo, perPage, page }: { token: string; owner: string; repo: string; perPage: number; page: number; }): Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; workflows: { id: number; name: string; path: string; state: "deleted" | "active" | "disabled_fork" | "disabled_inactivity" | "disabled_manually"; url: string; createdAt: string; updatedAt: string; }[]; }>; type WorkflowRunStatus = 'completed' | 'action_required' | 'cancelled' | 'failure' | 'neutral' | 'skipped' | 'stale' | 'success' | 'timed_out' | 'in_progress' | 'queued' | 'requested' | 'waiting' | 'pending'; declare const listWorkflowRunsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; workflowId: z.ZodOptional>; branch: z.ZodOptional; event: z.ZodOptional; status: z.ZodOptional>; perPage: z.ZodDefault>; page: z.ZodDefault>; maxPages: z.ZodOptional; }, z.core.$strip>; declare const listWorkflowRunsDescription = "List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. When hasMore, pass nextPage or raise maxPages — do not repeat the same call."; declare function listWorkflowRunsCore({ token, owner, repo, workflowId, branch, event, status, perPage, page, maxPages }: { token: string; owner: string; repo: string; workflowId?: string | number; branch?: string; event?: string; status?: WorkflowRunStatus; perPage: number; page: number; maxPages?: number; }): Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; runs: { id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; event: string; url: string; actor: string | undefined; createdAt: string; updatedAt: string; runNumber: number; runAttempt: number | undefined; }[]; }>; declare const getWorkflowRunInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; runId: z.ZodNumber; }, z.core.$strip>; declare const getWorkflowRunDescription = "Get details of a specific workflow run including status, timing, and trigger info"; declare function getWorkflowRunCore({ token, owner, repo, runId }: { token: string; owner: string; repo: string; runId: number; }): Promise<{ id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; sha: string; event: string; url: string; actor: string | undefined; runNumber: number; runAttempt: number | undefined; createdAt: string; updatedAt: string; runStartedAt: string | undefined; }>; declare const listWorkflowJobsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; runId: z.ZodNumber; filter: z.ZodDefault>>; perPage: z.ZodDefault>; page: z.ZodDefault>; }, z.core.$strip>; declare const listWorkflowJobsDescription = "List jobs for a workflow run, including step-level status and timing. When hasMore, pass nextPage — do not repeat the same call."; declare function listWorkflowJobsCore({ token, owner, repo, runId, filter, perPage, page }: { token: string; owner: string; repo: string; runId: number; filter: 'latest' | 'all'; perPage: number; page: number; }): Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; jobs: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string; completedAt: string | null; runnerName: string | null; steps: { name: string; status: "completed" | "in_progress" | "queued"; conclusion: string | null; number: number; startedAt: string | null | undefined; completedAt: string | null | undefined; }[] | undefined; }[]; }>; declare const getWorkflowJobLogsInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; jobId: z.ZodNumber; maxLines: z.ZodDefault>; }, z.core.$strip>; declare const getWorkflowJobLogsDescription = "Get the log output of a workflow job to diagnose failures. Returns the last maxLines lines (default 200) with per-line timestamps stripped to save tokens"; /** * Tail-truncate a raw job log and strip the ISO timestamp GitHub prefixes on * every line (~29 tokens-worth of noise per line the model never needs). */ declare function shapeJobLog(raw: string, maxLines: number): { totalLines: number; returnedLines: number; omittedLines: number; log: string; }; declare function getWorkflowJobLogsCore({ token, owner, repo, jobId, maxLines }: { token: string; owner: string; repo: string; jobId: number; maxLines: number; }): Promise<{ totalLines: number; returnedLines: number; omittedLines: number; log: string; jobId: number; }>; declare const triggerWorkflowInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; workflowId: z.ZodUnion; ref: z.ZodString; inputs: z.ZodOptional>; }, z.core.$strip>; declare const triggerWorkflowDescription = "Trigger a workflow via workflow_dispatch event"; /** Not idempotent — each call starts a new workflow run. */ declare function triggerWorkflowCore({ token, owner, repo, workflowId, ref, inputs }: { token: string; owner: string; repo: string; workflowId: string | number; ref: string; inputs?: Record; }): Promise<{ triggered: boolean; workflowId: string | number; ref: string; }>; declare const cancelWorkflowRunInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; runId: z.ZodNumber; }, z.core.$strip>; declare const cancelWorkflowRunDescription = "Cancel an in-progress workflow run"; /** Not idempotent — cancelling an already-finished run is a no-op on GitHub but still mutates. */ declare function cancelWorkflowRunCore({ token, owner, repo, runId }: { token: string; owner: string; repo: string; runId: number; }): Promise<{ cancelled: boolean; runId: number; }>; declare const rerunWorkflowRunInputSchema: z.ZodObject<{ owner: z.ZodString; repo: z.ZodString; runId: z.ZodNumber; onlyFailedJobs: z.ZodDefault>; }, z.core.$strip>; declare const rerunWorkflowRunDescription = "Re-run a workflow run, optionally only the failed jobs"; /** Not idempotent — each call starts another run attempt. */ declare function rerunWorkflowRunCore({ token, owner, repo, runId, onlyFailedJobs }: { token: string; owner: string; repo: string; runId: number; onlyFailedJobs: boolean; }): Promise<{ rerun: boolean; runId: number; onlyFailedJobs: boolean; }>; //#endregion //#region src/core/cores.d.ts /** * The `*Core` implementation of every tool, keyed by tool name. * * Kept apart from `GITHUB_TOOL_CATALOG` so that importing tool metadata does * not pull Octokit into a Vercel Workflow flow bundle, which cannot load * Node.js built-ins. Argument types vary per tool, so callers cast at the * dispatch boundary. Entries are getters so the ESM binding stays live * (module spies in tests). */ declare const GITHUB_TOOL_CORES: { readonly getRepository: typeof getRepositoryCore; readonly listBranches: typeof listBranchesCore; readonly getFileContent: typeof getFileContentCore; readonly getRepositoryTree: typeof getRepositoryTreeCore; readonly createBranch: typeof createBranchCore; readonly deleteBranch: typeof deleteBranchCore; readonly forkRepository: typeof forkRepositoryCore; readonly createRepository: typeof createRepositoryCore; readonly createOrUpdateFile: typeof createOrUpdateFileCore; readonly listPullRequests: typeof listPullRequestsCore; readonly getPullRequest: typeof getPullRequestCore; readonly createPullRequest: typeof createPullRequestCore; readonly mergePullRequest: typeof mergePullRequestCore; readonly updatePullRequest: typeof updatePullRequestCore; readonly addPullRequestComment: typeof addPullRequestCommentCore; readonly updatePullRequestComment: typeof updatePullRequestCommentCore; readonly deletePullRequestComment: typeof deletePullRequestCommentCore; readonly listPullRequestFiles: typeof listPullRequestFilesCore; readonly listPullRequestReviews: typeof listPullRequestReviewsCore; readonly createPullRequestReview: typeof createPullRequestReviewCore; readonly listPullRequestReviewThreads: typeof listPullRequestReviewThreadsCore; readonly replyToReviewComment: typeof replyToReviewCommentCore; readonly resolveReviewThread: typeof resolveReviewThreadCore; readonly requestReviewers: typeof requestReviewersCore; readonly getPullRequestContext: typeof getPullRequestContextCore; readonly getIssueContext: typeof getIssueContextCore; readonly listIssues: typeof listIssuesCore; readonly getIssue: typeof getIssueCore; readonly listIssueComments: typeof listIssueCommentsCore; readonly createIssue: typeof createIssueCore; readonly addIssueComment: typeof addIssueCommentCore; readonly updateIssueComment: typeof updateIssueCommentCore; readonly deleteIssueComment: typeof deleteIssueCommentCore; readonly closeIssue: typeof closeIssueCore; readonly updateIssue: typeof updateIssueCore; readonly listLabels: typeof listLabelsCore; readonly addLabels: typeof addLabelsCore; readonly removeLabel: typeof removeLabelCore; readonly createLabel: typeof createLabelCore; readonly updateLabel: typeof updateLabelCore; readonly deleteLabel: typeof deleteLabelCore; readonly addAssignees: typeof addAssigneesCore; readonly removeAssignees: typeof removeAssigneesCore; readonly listIssueReactions: typeof listIssueReactionsCore; readonly addIssueReaction: typeof addIssueReactionCore; readonly listCommentReactions: typeof listCommentReactionsCore; readonly addCommentReaction: typeof addCommentReactionCore; readonly listDiscussions: typeof listDiscussionsCore; readonly getDiscussion: typeof getDiscussionCore; readonly addDiscussionComment: typeof addDiscussionCommentCore; readonly listNotifications: typeof listNotificationsCore; readonly markNotificationRead: typeof markNotificationReadCore; readonly searchCode: typeof searchCodeCore; readonly searchRepositories: typeof searchRepositoriesCore; readonly searchIssues: typeof searchIssuesCore; readonly listCommits: typeof listCommitsCore; readonly getCommit: typeof getCommitCore; readonly getBlame: typeof getBlameCore; readonly compareCommits: typeof compareCommitsCore; readonly listGists: typeof listGistsCore; readonly getGist: typeof getGistCore; readonly listGistComments: typeof listGistCommentsCore; readonly createGist: typeof createGistCore; readonly updateGist: typeof updateGistCore; readonly deleteGist: typeof deleteGistCore; readonly createGistComment: typeof createGistCommentCore; readonly listWorkflows: typeof listWorkflowsCore; readonly listWorkflowRuns: typeof listWorkflowRunsCore; readonly getWorkflowRun: typeof getWorkflowRunCore; readonly listWorkflowJobs: typeof listWorkflowJobsCore; readonly getWorkflowJobLogs: typeof getWorkflowJobLogsCore; readonly triggerWorkflow: typeof triggerWorkflowCore; readonly cancelWorkflowRun: typeof cancelWorkflowRunCore; readonly rerunWorkflowRun: typeof rerunWorkflowRunCore; readonly listCheckRuns: typeof listCheckRunsCore; readonly getCombinedStatus: typeof getCombinedStatusCore; readonly getCiFailureContext: typeof getCiFailureContextCore; readonly listReleases: typeof listReleasesCore; readonly getLatestRelease: typeof getLatestReleaseCore; readonly getRelease: typeof getReleaseCore; readonly getReleaseContext: typeof getReleaseContextCore; readonly createRelease: typeof createReleaseCore; readonly updateRelease: typeof updateReleaseCore; readonly deleteRelease: typeof deleteReleaseCore; }; //#endregion //#region src/tanstack/tools.d.ts type Catalog = typeof GITHUB_TOOL_CATALOG; /** A TanStack server tool with the catalog's input schema and core return type. */ type GithubTanstackTool = N extends GithubToolName ? Omit, 'execute'> & { execute: (input: z.input) => ReturnType<(typeof GITHUB_TOOL_CORES)[N]>; } : never; /** Supported TanStack tool customizations. */ type TanstackToolOverrides = { description?: string; needsApproval?: boolean; }; /** Options shared by TanStack tool factories. */ type TanstackToolOptions = Omit & { needsApproval?: ToolApprovalMode; context?: GithubToolsContext; author?: CommitIdentity; committer?: CommitIdentity; coAuthors?: CommitIdentity[]; }; /** Configuration for a native array of GitHub server tools. */ type CreateGithubToolsOptions = Omit & { token?: GithubTokenInput; preset?: GithubToolPreset | readonly GithubToolPreset[]; requireApproval?: ApprovalConfig; overrides?: Partial>; }; /** Create TanStack server tools, optionally restricted to one or more presets. */ export declare function createGithubTools(options?: CreateGithubToolsOptions & { preset?: P; }): GithubTanstackTool

: P extends readonly GithubToolPreset[] ? PresetToolName : GithubToolName>[]; //#endregion //#region src/tanstack/evaluation.d.ts /** Jev configuration for TanStack automatic approval and preset selection. */ type GithubEvaluationOptions = { /** Defaults to vercelGatewayDecider('typesafe-ai/jev') using Gateway authentication. */ adapter?: EvaluateAdapter; /** Maximum risk on the 0–2 rubric. @default 1 */ maxRisk?: number; /** Minimum probability that the user requested the call. @default 0.6 */ minIntent?: number; /** Minimum probability for a preset to qualify. @default 0.7 */ minPresetProbability?: number; /** Maximum number of combined presets. @default 2 */ maxPresets?: number; }; //#endregion //#region src/tanstack/agent.d.ts type NativeOptions = Parameters>[0]; type ChatSettings = Omit, 'tools' | 'messages' | 'systemPrompts' | 'context' | 'middleware' | 'interrupts' | 'stream' | 'outputSchema'>; /** Configure a GitHub agent backed by TanStack chat(). */ type CreateGithubAgentOptions = ChatSettings & Omit & { /** Explicit presets or request-based selection with Jev. */ preset?: GithubToolPreset | readonly GithubToolPreset[] | 'auto'; /** Replace the default instructions; repository context is still appended. */ instructions?: string; /** Append to default instructions, unless instructions is supplied. */ additionalInstructions?: string; /** Evaluator adapter and thresholds for automatic routing and approval. */ evaluation?: GithubEvaluationOptions; /** Additional TanStack middleware. GitHub approval runs before these hooks. */ middleware?: ChatMiddleware[]; }; /** One agent invocation, including TanStack cancellation and continuation options. */ type GithubAgentCallOptions = Omit>, 'adapter'> & ({ prompt: string; messages?: never; } | { messages: NonNullable['messages']>; prompt?: never; }); /** A reusable, stateless TanStack GitHub agent. */ type GithubAgent = { /** Collect TanStack's text result. Throws on interrupts; use stream() for approval UIs. */ generate: (options: GithubAgentCallOptions) => Promise; /** Run the tool loop as native TanStack events, including approval interrupts. */ stream: (options: GithubAgentCallOptions) => ChatStream; }; /** Create a GitHub agent with preset instructions, tools, and automatic approval middleware. */ export declare function createGithubAgent({ token, preset, requireApproval, overrides, context, author, committer, coAuthors, instructions, additionalInstructions, evaluation, middleware, ...settings }: CreateGithubAgentOptions): GithubAgent; //#endregion //#region src/tanstack/approval.d.ts /** Options for GitHub approval middleware. Register githubToolApproval with chat(). */ type GithubApprovalMiddlewareOptions = { tools: readonly Tool[]; evaluation?: GithubEvaluationOptions; }; /** Evaluate automatic GitHub writes before execution and request review through githubToolApproval. */ export declare function createGithubApprovalMiddleware({ tools, evaluation }: GithubApprovalMiddlewareOptions): ChatMiddleware; //#endregion //#region src/tanstack/factories.d.ts /** Create the TanStack `getRepository` server tool. */ export declare const getRepository: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "getRepository", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; }) => Promise<{ name: string; fullName: string; description: string | null; url: string; defaultBranch: string; stars: number; forks: number; openIssues: number; language: string | null; private: boolean; createdAt: string; updatedAt: string; }>; }; /** Create the TanStack `listBranches` server tool. */ export declare const listBranches: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listBranches", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; perPage?: number | undefined; page?: number | undefined; }) => Promise>; }; /** Create the TanStack `getFileContent` server tool. */ export declare const getFileContent: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; startLine: import("zod").ZodOptional; endLine: import("zod").ZodOptional; maxLines: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "getFileContent", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; path: string; ref?: string | undefined; startLine?: number | undefined; endLine?: number | undefined; maxLines?: number | undefined; }) => Promise<{ type: "directory"; entries: { name: string; type: "file" | "dir" | "submodule" | "symlink"; path: string; }[]; path?: undefined; sha?: undefined; size?: undefined; totalLines?: undefined; content?: undefined; startLine?: undefined; endLine?: undefined; truncated?: undefined; } | { type: "submodule" | "symlink"; path: string; entries?: undefined; sha?: undefined; size?: undefined; totalLines?: undefined; content?: undefined; startLine?: undefined; endLine?: undefined; truncated?: undefined; } | { type: "file"; path: string; sha: string; size: number; totalLines: number; content: string; entries?: undefined; startLine?: undefined; endLine?: undefined; truncated?: undefined; } | { type: "file"; path: string; sha: string; size: number; totalLines: number; startLine: number; endLine: number; truncated: boolean; content: string; entries?: undefined; }>; }; /** Create the TanStack `getRepositoryTree` server tool. */ export declare const getRepositoryTree: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; path: import("zod").ZodOptional; recursive: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "getRepositoryTree", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; ref?: string | undefined; path?: string | undefined; recursive?: boolean | undefined; }) => Promise<{ sha: string; truncated: boolean; path: string | undefined; entries: { path: string; type: string; size: number | undefined; sha: string; }[]; }>; }; /** Create the TanStack `createBranch` server tool. */ export declare const createBranch: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; }, import("zod/v4/core").$strip>, undefined, "createBranch", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; branch: string; from?: string | undefined; }) => Promise<{ ref: string; sha: string; url: string; }>; }; /** Create the TanStack `deleteBranch` server tool. */ export declare const deleteBranch: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "deleteBranch", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; branch: string; }) => Promise<{ deleted: boolean; branch: string; }>; }; /** Create the TanStack `forkRepository` server tool. */ export declare const forkRepository: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; name: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "forkRepository", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; organization?: string | undefined; name?: string | undefined; }) => Promise<{ name: string; fullName: string; url: string; cloneUrl: string; sshUrl: string; defaultBranch: string; private: boolean; parent: { fullName: string; url: string; } | null; }>; }; /** Create the TanStack `createRepository` server tool. */ export declare const createRepository: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; isPrivate: import("zod").ZodDefault>; autoInit: import("zod").ZodDefault>; gitignoreTemplate: import("zod").ZodOptional; licenseTemplate: import("zod").ZodOptional; org: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "createRepository", unknown, boolean, undefined>, "execute"> & { execute: (input: { name: string; description?: string | undefined; isPrivate?: boolean | undefined; autoInit?: boolean | undefined; gitignoreTemplate?: string | undefined; licenseTemplate?: string | undefined; org?: string | undefined; }) => Promise<{ name: string; fullName: string; description: string | null; url: string; cloneUrl: string; sshUrl: string; defaultBranch: string; private: boolean; createdAt: string; }>; }; /** Create the TanStack `createOrUpdateFile` server tool. */ export declare const createOrUpdateFile: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; sha: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "createOrUpdateFile", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; path: string; message: string; content: string; branch?: string | undefined; sha?: string | undefined; }) => Promise<{ path: string; sha: string; skipped: true; message: string; commitSha?: undefined; commitUrl?: undefined; } | { path: string | undefined; sha: string | undefined; commitSha: string | undefined; commitUrl: string | undefined; skipped?: undefined; message?: undefined; }>; }; /** Create the TanStack `listPullRequests` server tool. */ export declare const listPullRequests: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; maxPages: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "listPullRequests", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; state?: "open" | "closed" | "all" | undefined; perPage?: number | undefined; page?: number | undefined; maxPages?: number | undefined; }) => Promise>; }; /** Create the TanStack `getPullRequest` server tool. */ export declare const getPullRequest: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; }, import("zod/v4/core").$strip>, undefined, "getPullRequest", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; detail?: "summary" | "full" | undefined; }) => Promise<{ number: number; title: string; body: string | null | undefined; state: "open" | "closed"; url: string; author: string; branch: string; headSha: string; base: string; draft: boolean | undefined; merged: boolean; mergeable: boolean | null; additions: number; deletions: number; changedFiles: number; createdAt: string; updatedAt: string; mergedAt: string | null; }>; }; /** Create the TanStack `createPullRequest` server tool. */ export declare const createPullRequest: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; head: import("zod").ZodString; base: import("zod").ZodString; draft: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "createPullRequest", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; title: string; head: string; base: string; body?: string | undefined; draft?: boolean | undefined; }) => Promise<{ number: number; title: string; url: string; state: "open" | "closed"; draft: boolean | undefined; branch: string; base: string; }>; }; /** Create the TanStack `mergePullRequest` server tool. */ export declare const mergePullRequest: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; commitMessage: import("zod").ZodOptional; mergeMethod: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "mergePullRequest", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; commitTitle?: string | undefined; commitMessage?: string | undefined; mergeMethod?: "merge" | "squash" | "rebase" | undefined; }) => Promise<{ merged: boolean; message: string; sha: string; }>; }; /** Create the TanStack `updatePullRequest` server tool. */ export declare const updatePullRequest: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; body: import("zod").ZodOptional; state: import("zod").ZodOptional>; base: import("zod").ZodOptional; draft: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "updatePullRequest", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; title?: string | undefined; body?: string | undefined; state?: "open" | "closed" | undefined; base?: string | undefined; draft?: boolean | undefined; }) => Promise<{ number: number; title: string; state: "open" | "closed"; draft: boolean | undefined; url: string; base: string; updatedAt: string; }>; }; /** Create the TanStack `addPullRequestComment` server tool. */ export declare const addPullRequestComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "addPullRequestComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; body: string; }) => Promise<{ id: number; url: string; body: string | undefined; author: string | undefined; createdAt: string; }>; }; /** Create the TanStack `updatePullRequestComment` server tool. */ export declare const updatePullRequestComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "updatePullRequestComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; commentId: number; body: string; }) => Promise<{ id: number; url: string; body: string | undefined; updatedAt: string; }>; }; /** Create the TanStack `deletePullRequestComment` server tool. */ export declare const deletePullRequestComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "deletePullRequestComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; commentId: number; }) => Promise<{ deleted: boolean; commentId: number; }>; }; /** Create the TanStack `listPullRequestFiles` server tool. */ export declare const listPullRequestFiles: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; filenames: import("zod").ZodOptional>; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listPullRequestFiles", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; includePatch?: boolean | undefined; filenames?: string[] | undefined; perPage?: number | undefined; page?: number | undefined; }) => Promise>; }; /** Create the TanStack `listPullRequestReviews` server tool. */ export declare const listPullRequestReviews: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listPullRequestReviews", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; perPage?: number | undefined; page?: number | undefined; }) => Promise>; }; /** Create the TanStack `createPullRequestReview` server tool. */ export declare const createPullRequestReview: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; event: import("zod").ZodEnum<{ APPROVE: "APPROVE"; REQUEST_CHANGES: "REQUEST_CHANGES"; COMMENT: "COMMENT"; }>; comments: import("zod").ZodOptional; side: import("zod").ZodOptional>; }, import("zod/v4/core").$strip>>>; }, import("zod/v4/core").$strip>, undefined, "createPullRequestReview", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; body?: string | undefined; comments?: { path: string; body: string; line?: number | undefined; side?: "LEFT" | "RIGHT" | undefined; }[] | undefined; }) => Promise<{ id: number; state: string; body: string; url: string; author: string | undefined; submittedAt: string | undefined; }>; }; /** Create the TanStack `listPullRequestReviewThreads` server tool. */ export declare const listPullRequestReviewThreads: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; detail: import("zod").ZodDefault>>; perPage: import("zod").ZodDefault>; after: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "listPullRequestReviewThreads", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; status?: "all" | "unresolved" | undefined; detail?: "summary" | "full" | undefined; perPage?: number | undefined; after?: string | undefined; }) => Promise<{ error: string; totalCount?: undefined; returnedCount?: undefined; hasNextPage?: undefined; endCursor?: undefined; threads?: undefined; } | { totalCount: number; returnedCount: number; hasNextPage: boolean; endCursor: string | null; threads: { threadId: string; isResolved: boolean; isOutdated: boolean; path: string | null; line: number | null; startLine: number | null; resolvedBy: string | null; commentCount: number; comments: { commentId: number | null; author: string | null; body: string | null | undefined; createdAt: string; }[]; }[]; error?: undefined; }>; }; /** Create the TanStack `replyToReviewComment` server tool. */ export declare const replyToReviewComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "replyToReviewComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; commentId: number; body: string; }) => Promise<{ id: number; url: string; author: string; createdAt: string; }>; }; /** Create the TanStack `resolveReviewThread` server tool. */ export declare const resolveReviewThread: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "resolveReviewThread", unknown, boolean, undefined>, "execute"> & { execute: (input: { threadId: string; }) => Promise<{ error: string; threadId?: undefined; isResolved?: undefined; } | { threadId: string; isResolved: boolean; error?: undefined; }>; }; /** Create the TanStack `requestReviewers` server tool. */ export declare const requestReviewers: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; teamReviewers: import("zod").ZodOptional>; }, import("zod/v4/core").$strip>, undefined, "requestReviewers", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; reviewers?: string[] | undefined; teamReviewers?: string[] | undefined; }) => Promise<{ number: number; url: string; requestedReviewers: string[] | undefined; requestedTeams: string[] | undefined; }>; }; /** Create the TanStack `getPullRequestContext` server tool. */ export declare const getPullRequestContext: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; includeReviews: import("zod").ZodDefault>; includeChecks: import("zod").ZodDefault>; includePatch: import("zod").ZodDefault>; filesPerPage: import("zod").ZodDefault>; detail: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "getPullRequestContext", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; pullNumber: number; includeFiles?: boolean | undefined; includeReviews?: boolean | undefined; includeChecks?: boolean | undefined; includePatch?: boolean | undefined; filesPerPage?: number | undefined; detail?: "summary" | "full" | undefined; }) => Promise<{ checks?: { checkRuns: { hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; checkRuns: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string | null; completedAt: string | null; }[]; }; combinedStatus: { state: string; totalCount: number; statuses: { context: string; state: string; description: string | null; url: string | null; }[]; }; } | undefined; reviews?: { id: number; state: string; body: string; author: string | undefined; url: string; submittedAt: string | undefined; }[] | undefined; reviewsHasMore?: boolean | undefined; files?: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; changes: number; }[] | undefined; filesHasMore?: boolean | undefined; pullRequest: { number: number; title: string; body: string | null | undefined; state: "open" | "closed"; url: string; author: string; branch: string; headSha: string; base: string; draft: boolean | undefined; merged: boolean; mergeable: boolean | null; additions: number; deletions: number; changedFiles: number; createdAt: string; updatedAt: string; mergedAt: string | null; }; }>; }; /** Create the TanStack `getIssueContext` server tool. */ export declare const getIssueContext: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; includeComments: import("zod").ZodDefault>; maxComments: import("zod").ZodDefault>; detail: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "getIssueContext", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; includeLabels?: boolean | undefined; includeComments?: boolean | undefined; maxComments?: number | undefined; detail?: "summary" | "full" | undefined; }) => Promise<{ comments?: { id: number; url: string; body: string | null | undefined; author: string | undefined; createdAt: string; updatedAt: string; }[] | undefined; commentsHasMore?: boolean | undefined; labelNames?: string[] | undefined; issue: { number: number; title: string; body: string | null | undefined; state: string; url: string; author: string | undefined; assignees: string[] | undefined; labels: (string | undefined)[]; comments: number; createdAt: string; updatedAt: string; closedAt: string | null; }; }>; }; /** Create the TanStack `listIssues` server tool. */ export declare const listIssues: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; labels: import("zod").ZodOptional; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; maxPages: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "listIssues", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; state?: "open" | "closed" | "all" | undefined; labels?: string | undefined; perPage?: number | undefined; page?: number | undefined; maxPages?: number | undefined; }) => Promise>; }; /** Create the TanStack `getIssue` server tool. */ export declare const getIssue: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; }, import("zod/v4/core").$strip>, undefined, "getIssue", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; detail?: "summary" | "full" | undefined; }) => Promise<{ number: number; title: string; body: string | null | undefined; state: string; url: string; author: string | undefined; assignees: string[] | undefined; labels: (string | undefined)[]; comments: number; createdAt: string; updatedAt: string; closedAt: string | null; }>; }; /** Create the TanStack `listIssueComments` server tool. */ export declare const listIssueComments: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; detail: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "listIssueComments", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; perPage?: number | undefined; page?: number | undefined; detail?: "summary" | "full" | undefined; }) => Promise>; }; /** Create the TanStack `createIssue` server tool. */ export declare const createIssue: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; labels: import("zod").ZodOptional>; assignees: import("zod").ZodOptional>; }, import("zod/v4/core").$strip>, undefined, "createIssue", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; title: string; body?: string | undefined; labels?: string[] | undefined; assignees?: string[] | undefined; }) => Promise<{ number: number; title: string; url: string; state: string; labels: (string | undefined)[]; }>; }; /** Create the TanStack `addIssueComment` server tool. */ export declare const addIssueComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "addIssueComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; body: string; }) => Promise<{ id: number; url: string; body: string | undefined; author: string | undefined; createdAt: string; }>; }; /** Create the TanStack `updateIssueComment` server tool. */ export declare const updateIssueComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "updateIssueComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; commentId: number; body: string; }) => Promise<{ id: number; url: string; body: string | undefined; updatedAt: string; }>; }; /** Create the TanStack `deleteIssueComment` server tool. */ export declare const deleteIssueComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "deleteIssueComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; commentId: number; }) => Promise<{ deleted: boolean; commentId: number; }>; }; /** Create the TanStack `closeIssue` server tool. */ export declare const closeIssue: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; }, import("zod/v4/core").$strip>, undefined, "closeIssue", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; stateReason?: "completed" | "not_planned" | undefined; }) => Promise<{ number: number; title: string; state: string; url: string; closedAt: string | null; }>; }; /** Create the TanStack `updateIssue` server tool. */ export declare const updateIssue: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; body: import("zod").ZodOptional; state: import("zod").ZodOptional>; stateReason: import("zod").ZodOptional>; labels: import("zod").ZodOptional>; milestone: import("zod").ZodOptional>; assignees: import("zod").ZodOptional>; }, import("zod/v4/core").$strip>, undefined, "updateIssue", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; title?: string | undefined; body?: string | undefined; state?: "open" | "closed" | undefined; stateReason?: "completed" | "not_planned" | "reopened" | undefined; labels?: string[] | undefined; milestone?: number | null | undefined; assignees?: string[] | undefined; }) => Promise<{ number: number; title: string; state: string; url: string; labels: (string | undefined)[]; assignees: string[] | undefined; milestone: number | null; closedAt: string | null; updatedAt: string; }>; }; /** Create the TanStack `listLabels` server tool. */ export declare const listLabels: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listLabels", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; perPage?: number | undefined; page?: number | undefined; }) => Promise>; }; /** Create the TanStack `addLabels` server tool. */ export declare const addLabels: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; }, import("zod/v4/core").$strip>, undefined, "addLabels", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; labels: string[]; }) => Promise<{ name: string; color: string; description: string | null; }[]>; }; /** Create the TanStack `removeLabel` server tool. */ export declare const removeLabel: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "removeLabel", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; label: string; }) => Promise<{ removed: boolean; label: string; issueNumber: number; }>; }; /** Create the TanStack `createLabel` server tool. */ export declare const createLabel: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; }, import("zod/v4/core").$strip>, undefined, "createLabel", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; name: string; color: string; description?: string | undefined; }) => Promise<{ name: string; color: string; description: string | null; }>; }; /** Create the TanStack `updateLabel` server tool. */ export declare const updateLabel: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; color: import("zod").ZodOptional; description: import("zod").ZodOptional>; }, import("zod/v4/core").$strip>, undefined, "updateLabel", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; name: string; newName?: string | undefined; color?: string | undefined; description?: string | null | undefined; }) => Promise<{ name: string; color: string; description: string | null; }>; }; /** Create the TanStack `deleteLabel` server tool. */ export declare const deleteLabel: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "deleteLabel", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; name: string; }) => Promise<{ deleted: boolean; name: string; }>; }; /** Create the TanStack `addAssignees` server tool. */ export declare const addAssignees: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; }, import("zod/v4/core").$strip>, undefined, "addAssignees", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; assignees: string[]; }) => Promise<{ number: number; assignees: string[] | undefined; }>; }; /** Create the TanStack `removeAssignees` server tool. */ export declare const removeAssignees: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; }, import("zod/v4/core").$strip>, undefined, "removeAssignees", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; assignees: string[]; }) => Promise<{ number: number; assignees: string[] | undefined; }>; }; /** Create the TanStack `listIssueReactions` server tool. */ export declare const listIssueReactions: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listIssueReactions", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes" | undefined; perPage?: number | undefined; page?: number | undefined; }) => Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; total: number; counts: Record; reactions: { content: string; user: string | undefined; }[]; }>; }; /** Create the TanStack `addIssueReaction` server tool. */ export declare const addIssueReaction: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; }, import("zod/v4/core").$strip>, undefined, "addIssueReaction", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; issueNumber: number; content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; }) => Promise<{ id: number; content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; user: string | undefined; issueNumber: number; }>; }; /** Create the TanStack `listCommentReactions` server tool. */ export declare const listCommentReactions: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listCommentReactions", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; commentId: number; content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes" | undefined; perPage?: number | undefined; page?: number | undefined; }) => Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; total: number; counts: Record; reactions: { content: string; user: string | undefined; }[]; }>; }; /** Create the TanStack `addCommentReaction` server tool. */ export declare const addCommentReaction: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; }, import("zod/v4/core").$strip>, undefined, "addCommentReaction", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; commentId: number; content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; }) => Promise<{ id: number; content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; user: string | undefined; commentId: number; }>; }; /** Create the TanStack `listDiscussions` server tool. */ export declare const listDiscussions: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; perPage: import("zod").ZodDefault>; after: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "listDiscussions", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; category?: string | undefined; perPage?: number | undefined; after?: string | undefined; }) => Promise<{ error: string; hasNextPage?: undefined; endCursor?: undefined; discussions?: undefined; } | { hasNextPage: boolean; endCursor: string | null; discussions: { id: string; number: number; title: string; url: string; author: string | null; category: string | null; answerChosen: boolean | null; createdAt: string; updatedAt: string; }[]; error?: undefined; }>; }; /** Create the TanStack `getDiscussion` server tool. */ export declare const getDiscussion: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; }, import("zod/v4/core").$strip>, undefined, "getDiscussion", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; discussionNumber: number; detail?: "summary" | "full" | undefined; }) => Promise<{ error: string; id?: undefined; number?: undefined; title?: undefined; body?: undefined; url?: undefined; author?: undefined; category?: undefined; answerChosen?: undefined; commentsCount?: undefined; createdAt?: undefined; updatedAt?: undefined; } | { id: string; number: number; title: string; body: string | null | undefined; url: string; author: string | null; category: string | null; answerChosen: boolean | null; commentsCount: number; createdAt: string; updatedAt: string; error?: undefined; }>; }; /** Create the TanStack `addDiscussionComment` server tool. */ export declare const addDiscussionComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "addDiscussionComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; discussionNumber: number; body: string; }) => Promise<{ error: string; id?: undefined; url?: undefined; body?: undefined; author?: undefined; createdAt?: undefined; } | { id: string; url: string; body: string; author: string | null; createdAt: string; error?: undefined; }>; }; /** Create the TanStack `listNotifications` server tool. */ export declare const listNotifications: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; participating: import("zod").ZodDefault>; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listNotifications", unknown, boolean, undefined>, "execute"> & { execute: (input: { all?: boolean | undefined; participating?: boolean | undefined; perPage?: number | undefined; page?: number | undefined; }) => Promise>; }; /** Create the TanStack `markNotificationRead` server tool. */ export declare const markNotificationRead: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "markNotificationRead", unknown, boolean, undefined>, "execute"> & { execute: (input: { threadId: string; }) => Promise<{ marked: boolean; threadId: string; }>; }; /** Create the TanStack `searchCode` server tool. */ export declare const searchCode: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; }, import("zod/v4/core").$strip>, undefined, "searchCode", unknown, boolean, undefined>, "execute"> & { execute: (input: { query: string; perPage?: number | undefined; }) => Promise<{ totalCount: number; items: { name: string; path: string; url: string; repository: string; sha: string; textMatches: { fragment: string; }[] | undefined; }[]; }>; }; /** Create the TanStack `searchRepositories` server tool. */ export declare const searchRepositories: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; sort: import("zod").ZodOptional>; order: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "searchRepositories", unknown, boolean, undefined>, "execute"> & { execute: (input: { query: string; perPage?: number | undefined; sort?: "stars" | "forks" | "help-wanted-issues" | "updated" | undefined; order?: "asc" | "desc" | undefined; }) => Promise<{ totalCount: number; items: { name: string; fullName: string; description: string | null; url: string; stars: number; forks: number; language: string | null; topics: string[] | undefined; }[]; }>; }; /** Create the TanStack `searchIssues` server tool. */ export declare const searchIssues: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; sort: import("zod").ZodOptional>; order: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "searchIssues", unknown, boolean, undefined>, "execute"> & { execute: (input: { query: string; perPage?: number | undefined; sort?: "comments" | "updated" | "reactions" | "created" | "interactions" | undefined; order?: "asc" | "desc" | undefined; }) => Promise<{ totalCount: number; items: { number: number; title: string; state: string; url: string; repository: string | undefined; author: string | undefined; labels: (string | undefined)[]; comments: number; createdAt: string; updatedAt: string; isPullRequest: boolean; }[]; }>; }; /** Create the TanStack `listCommits` server tool. */ export declare const listCommits: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; sha: import("zod").ZodOptional; author: import("zod").ZodOptional; since: import("zod").ZodOptional; until: import("zod").ZodOptional; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; maxPages: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "listCommits", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; path?: string | undefined; sha?: string | undefined; author?: string | undefined; since?: string | undefined; until?: string | undefined; perPage?: number | undefined; page?: number | undefined; maxPages?: number | undefined; }) => Promise>; }; /** Create the TanStack `getCommit` server tool. */ export declare const getCommit: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; }, import("zod/v4/core").$strip>, undefined, "getCommit", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; ref: string; includePatch?: boolean | undefined; }) => Promise<{ sha: string; message: string; author: string | undefined; authorLogin: string | undefined; date: string | undefined; url: string; stats: { additions: number | undefined; deletions: number | undefined; total: number | undefined; } | null; files: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; }[] | undefined; }>; }; /** Create the TanStack `getBlame` server tool. */ export declare const getBlame: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; line: import("zod").ZodOptional; lineStart: import("zod").ZodOptional; lineEnd: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "getBlame", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; path: string; ref?: string | undefined; line?: number | undefined; lineStart?: number | undefined; lineEnd?: number | undefined; }) => Promise<{ error: string; ref?: undefined; tipSha?: undefined; path?: undefined; rangeCount?: undefined; ranges?: undefined; } | { ref: string; tipSha: string; path: string; rangeCount: number; ranges: { startingLine: number; endingLine: number; age: number; commit: { sha: string; abbreviatedSha: string; messageHeadline: string; authoredDate: string; url: string; authorName: string | null; authorEmail: string | null; authorLogin: string | null; }; }[]; error?: undefined; }>; }; /** Create the TanStack `compareCommits` server tool. */ export declare const compareCommits: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; }, import("zod/v4/core").$strip>, undefined, "compareCommits", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; base: string; head: string; includePatch?: boolean | undefined; }) => Promise<{ status: "diverged" | "ahead" | "behind" | "identical"; aheadBy: number; behindBy: number; totalCommits: number; url: string; commits: { sha: string; message: string; author: string | undefined; authorLogin: string | undefined; }[]; files: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; }[] | undefined; }>; }; /** Create the TanStack `listGists` server tool. */ export declare const listGists: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listGists", unknown, boolean, undefined>, "execute"> & { execute: (input: { username?: string | undefined; perPage?: number | undefined; page?: number | undefined; }) => Promise>; }; /** Create the TanStack `getGist` server tool. */ export declare const getGist: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "getGist", unknown, boolean, undefined>, "execute"> & { execute: (input: { gistId: string; }) => Promise<{ id: string | undefined; description: string | null | undefined; public: boolean | undefined; url: string | undefined; owner: string | undefined; files: { filename: string | undefined; language: string | undefined; size: number | undefined; content: string | undefined; }[]; comments: number | undefined; createdAt: string | undefined; updatedAt: string | undefined; }>; }; /** Create the TanStack `listGistComments` server tool. */ export declare const listGistComments: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listGistComments", unknown, boolean, undefined>, "execute"> & { execute: (input: { gistId: string; perPage?: number | undefined; page?: number | undefined; }) => Promise>; }; /** Create the TanStack `createGist` server tool. */ export declare const createGist: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; files: import("zod").ZodRecord>; isPublic: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "createGist", unknown, boolean, undefined>, "execute"> & { execute: (input: { files: Record; description?: string | undefined; isPublic?: boolean | undefined; }) => Promise<{ id: string | undefined; description: string | null | undefined; public: boolean | undefined; url: string | undefined; files: string[]; owner: string | undefined; }>; }; /** Create the TanStack `updateGist` server tool. */ export declare const updateGist: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; files: import("zod").ZodOptional>>; filesToDelete: import("zod").ZodOptional>; }, import("zod/v4/core").$strip>, undefined, "updateGist", unknown, boolean, undefined>, "execute"> & { execute: (input: { gistId: string; description?: string | undefined; files?: Record | undefined; filesToDelete?: string[] | undefined; }) => Promise<{ id: string | undefined; description: string | null | undefined; url: string | undefined; files: string[]; }>; }; /** Create the TanStack `deleteGist` server tool. */ export declare const deleteGist: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "deleteGist", unknown, boolean, undefined>, "execute"> & { execute: (input: { gistId: string; }) => Promise<{ deleted: boolean; gistId: string; }>; }; /** Create the TanStack `createGistComment` server tool. */ export declare const createGistComment: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "createGistComment", unknown, boolean, undefined>, "execute"> & { execute: (input: { gistId: string; body: string; }) => Promise<{ id: number; url: string; body: string; author: string | undefined; createdAt: string; }>; }; /** Create the TanStack `listWorkflows` server tool. */ export declare const listWorkflows: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listWorkflows", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; perPage?: number | undefined; page?: number | undefined; }) => Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; workflows: { id: number; name: string; path: string; state: "deleted" | "active" | "disabled_fork" | "disabled_inactivity" | "disabled_manually"; url: string; createdAt: string; updatedAt: string; }[]; }>; }; /** Create the TanStack `listWorkflowRuns` server tool. */ export declare const listWorkflowRuns: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; branch: import("zod").ZodOptional; event: import("zod").ZodOptional; status: import("zod").ZodOptional>; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; maxPages: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "listWorkflowRuns", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; workflowId?: string | number | undefined; branch?: string | undefined; event?: string | undefined; status?: "success" | "completed" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "timed_out" | "in_progress" | "queued" | "requested" | "waiting" | "pending" | undefined; perPage?: number | undefined; page?: number | undefined; maxPages?: number | undefined; }) => Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; runs: { id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; event: string; url: string; actor: string | undefined; createdAt: string; updatedAt: string; runNumber: number; runAttempt: number | undefined; }[]; }>; }; /** Create the TanStack `getWorkflowRun` server tool. */ export declare const getWorkflowRun: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "getWorkflowRun", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; runId: number; }) => Promise<{ id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; sha: string; event: string; url: string; actor: string | undefined; runNumber: number; runAttempt: number | undefined; createdAt: string; updatedAt: string; runStartedAt: string | undefined; }>; }; /** Create the TanStack `listWorkflowJobs` server tool. */ export declare const listWorkflowJobs: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; perPage: import("zod").ZodDefault>; page: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "listWorkflowJobs", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; runId: number; filter?: "all" | "latest" | undefined; perPage?: number | undefined; page?: number | undefined; }) => Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; jobs: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string; completedAt: string | null; runnerName: string | null; steps: { name: string; status: "completed" | "in_progress" | "queued"; conclusion: string | null; number: number; startedAt: string | null | undefined; completedAt: string | null | undefined; }[] | undefined; }[]; }>; }; /** Create the TanStack `getWorkflowJobLogs` server tool. */ export declare const getWorkflowJobLogs: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; }, import("zod/v4/core").$strip>, undefined, "getWorkflowJobLogs", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; jobId: number; maxLines?: number | undefined; }) => Promise<{ totalLines: number; returnedLines: number; omittedLines: number; log: string; jobId: number; }>; }; /** Create the TanStack `triggerWorkflow` server tool. */ export declare const triggerWorkflow: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; ref: import("zod").ZodString; inputs: import("zod").ZodOptional>; }, import("zod/v4/core").$strip>, undefined, "triggerWorkflow", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; workflowId: string | number; ref: string; inputs?: Record | undefined; }) => Promise<{ triggered: boolean; workflowId: string | number; ref: string; }>; }; /** Create the TanStack `cancelWorkflowRun` server tool. */ export declare const cancelWorkflowRun: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "cancelWorkflowRun", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; runId: number; }) => Promise<{ cancelled: boolean; runId: number; }>; }; /** Create the TanStack `rerunWorkflowRun` server tool. */ export declare const rerunWorkflowRun: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; }, import("zod/v4/core").$strip>, undefined, "rerunWorkflowRun", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; runId: number; onlyFailedJobs?: boolean | undefined; }) => Promise<{ rerun: boolean; runId: number; onlyFailedJobs: boolean; }>; }; /** Create the TanStack `listCheckRuns` server tool. */ export declare const listCheckRuns: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; maxPages: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "listCheckRuns", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; ref: string; perPage?: number | undefined; page?: number | undefined; maxPages?: number | undefined; }) => Promise<{ hasMore: boolean; page: number; perPage: number; nextPage?: number; totalCount: number; checkRuns: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string | null; completedAt: string | null; }[]; }>; }; /** Create the TanStack `getCombinedStatus` server tool. */ export declare const getCombinedStatus: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "getCombinedStatus", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; ref: string; }) => Promise<{ state: string; totalCount: number; statuses: { context: string; state: string; description: string | null; url: string | null; }[]; }>; }; /** Create the TanStack `getCiFailureContext` server tool. */ export declare const getCiFailureContext: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; maxFailedJobs: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "getCiFailureContext", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; ref: string; maxFailedRuns?: number | undefined; maxFailedJobs?: number | undefined; }) => Promise<{ latestFailure?: { run: { id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; event: string; url: string; actor: string | undefined; createdAt: string; updatedAt: string; runNumber: number; runAttempt: number | undefined; }; jobs: Array<{ id: number; name: string; status: string; conclusion: string | null; url: string | null; startedAt: string; completedAt: string | null; steps?: Array<{ name: string; status: string; conclusion: string | null; number: number; startedAt?: string | null; completedAt?: string | null; }>; }>; } | undefined; ref: string; combinedStatus: { state: string; totalCount: number; statuses: { context: string; state: string; description: string | null; url: string | null; }[]; }; failedCheckRuns: { id: number; name: string; status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending"; conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null; url: string | null; startedAt: string | null; completedAt: string | null; }[]; checkRunTotalCount: number; recentFailedRuns: { id: number; name: string | null | undefined; status: string | null; conclusion: string | null; branch: string | null; event: string; url: string; actor: string | undefined; createdAt: string; updatedAt: string; runNumber: number; runAttempt: number | undefined; }[]; }>; }; /** Create the TanStack `listReleases` server tool. */ export declare const listReleases: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>; page: import("zod").ZodDefault>; maxPages: import("zod").ZodOptional; detail: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "listReleases", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; perPage?: number | undefined; page?: number | undefined; maxPages?: number | undefined; detail?: "summary" | "full" | undefined; }) => Promise>; }; /** Create the TanStack `getLatestRelease` server tool. */ export declare const getLatestRelease: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; }, import("zod/v4/core").$strip>, undefined, "getLatestRelease", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; detail?: "summary" | "full" | undefined; }) => Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; author: string; createdAt: string; publishedAt: string | null; assets: { name: string; downloadUrl: string; size: number; downloadCount: number; }[]; }>; }; /** Create the TanStack `getRelease` server tool. */ export declare const getRelease: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit>>; }, import("zod/v4/core").$strip>, undefined, "getRelease", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; releaseId: number; detail?: "summary" | "full" | undefined; }) => Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; draft: boolean; prerelease: boolean; url: string; author: string; createdAt: string; publishedAt: string | null; assets: { name: string; downloadUrl: string; size: number; downloadCount: number; }[]; }>; }; /** Create the TanStack `getReleaseContext` server tool. */ export declare const getReleaseContext: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; includePrevious: import("zod").ZodDefault>; includeCompare: import("zod").ZodDefault>; detail: import("zod").ZodDefault>>; }, import("zod/v4/core").$strip>, undefined, "getReleaseContext", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; releaseId?: number | undefined; includePrevious?: boolean | undefined; includeCompare?: boolean | undefined; detail?: "summary" | "full" | undefined; }) => Promise<{ comparison?: { status: "diverged" | "ahead" | "behind" | "identical"; aheadBy: number; behindBy: number; totalCommits: number; url: string; commits: { sha: string; message: string; author: string | undefined; authorLogin: string | undefined; }[]; files: { patch?: string | undefined; filename: string; status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged"; additions: number; deletions: number; }[] | undefined; } | undefined; previousRelease?: { id: number; tagName: string; name: string | null; body: string | null | undefined; draft: boolean; prerelease: boolean; url: string; author: string; createdAt: string; publishedAt: string | null; } | undefined; release: { id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; author: string; createdAt: string; publishedAt: string | null; assets: { name: string; downloadUrl: string; size: number; downloadCount: number; }[]; }; }>; }; /** Create the TanStack `createRelease` server tool. */ export declare const createRelease: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; name: import("zod").ZodOptional; body: import("zod").ZodOptional; draft: import("zod").ZodDefault>; prerelease: import("zod").ZodDefault>; generateReleaseNotes: import("zod").ZodDefault>; }, import("zod/v4/core").$strip>, undefined, "createRelease", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; tagName: string; target?: string | undefined; name?: string | undefined; body?: string | undefined; draft?: boolean | undefined; prerelease?: boolean | undefined; generateReleaseNotes?: boolean | undefined; }) => Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; draft: boolean; prerelease: boolean; createdAt: string; }>; }; /** Create the TanStack `updateRelease` server tool. */ export declare const updateRelease: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit; target: import("zod").ZodOptional; name: import("zod").ZodOptional; body: import("zod").ZodOptional; draft: import("zod").ZodOptional; prerelease: import("zod").ZodOptional; }, import("zod/v4/core").$strip>, undefined, "updateRelease", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; releaseId: number; tagName?: string | undefined; target?: string | undefined; name?: string | undefined; body?: string | undefined; draft?: boolean | undefined; prerelease?: boolean | undefined; }) => Promise<{ id: number; tagName: string; name: string | null; body: string | null | undefined; url: string; draft: boolean; prerelease: boolean; publishedAt: string | null; }>; }; /** Create the TanStack `deleteRelease` server tool. */ export declare const deleteRelease: (token: GithubTokenInput, options?: TanstackToolOptions) => Omit, undefined, "deleteRelease", unknown, boolean, undefined>, "execute"> & { execute: (input: { owner: string; repo: string; releaseId: number; }) => Promise<{ deleted: boolean; releaseId: number; }>; }; //#endregion export { AUTO_APPROVAL_TOOLS, type ApprovalConfig, type CommitIdentity, type CreateGithubAgentOptions, type CreateGithubToolsOptions, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubAgent, type GithubAgentCallOptions, type GithubApprovalMiddlewareOptions, type GithubEvaluationOptions, type GithubTanstackTool, type GithubTokenCall, type GithubTokenInput, type GithubToolName, type GithubToolPreset, type GithubToolsContext, type GithubWriteToolName, PRESET_TOOLS, type TanstackToolOptions, type TanstackToolOverrides, type ToolApprovalMode }; //# sourceMappingURL=tanstack.d.mts.map