import type { IssueAdapter, StandardIssue, StandardIssueListItem, StandardIssueWithBody } from './issue-adapter.js';
export interface ClosedIssueListItem {
    number: number;
    title: string;
    closedAt: string;
}
export declare class GitHubCliAdapter implements IssueAdapter {
    private cwd;
    private repo?;
    private repoFlag;
    /**
     * @param cwd Working directory for `gh` CLI
     * @param repo Optional `owner/repo` string. When set, `--repo` is passed to all `gh` commands.
     */
    constructor(cwd: string, repo?: string | undefined);
    fetchIssue(issueNumber: number): StandardIssue;
    /**
     * Fetch recently closed issues, optionally filtered by search query (e.g., "closed:>2026-01-01").
     */
    fetchClosedIssues(limit?: number, sinceTag?: string): ClosedIssueListItem[];
    fetchOpenIssues(limit?: number): StandardIssueListItem[];
    /**
     * Fetch open issues including each issue's `body` (for `totem orient`'s
     * epic→child grouping). Dedicated method rather than widening
     * `fetchOpenIssues`, whose schema `triage` depends on.
     */
    fetchOpenIssuesWithBody(limit?: number): StandardIssueWithBody[];
}
//# sourceMappingURL=github-cli.d.ts.map