//#region src/github/prs.d.ts /** * Pull-request query primitives over `gh`. * * Returns structured `Pr` objects; callers handle rendering, multi-repo * iteration, and any UX concerns. */ interface Pr { number: number; title: string; headRefName: string; baseRefName: string; url: string; /** Author login. Populated by `listPrsBySearch`; `listMyOpenPrs` omits it (always `@me`). */ author?: string; } /** * List open PRs authored by the current `gh`-authenticated user in the * repo at `cwd` (or the cwd's repo when omitted). Returns an empty list * when none match. */ declare function listMyOpenPrs(cwd?: string): Promise; /** * List PRs matching a `gh pr list --search` query in the repo at `cwd` * (or the cwd's repo when omitted). Returns structured `Pr` rows with * the author login filled in. * * @example * listPrsBySearch("is:open is:pr review-requested:@me") * listPrsBySearch("is:open is:pr author:@me OR assignee:@me") */ declare function listPrsBySearch(query: string, cwd?: string): Promise; //#endregion export { listMyOpenPrs as n, listPrsBySearch as r, Pr as t };