/** * GitLab CLI shared utilities * * Common functions used by both issue.ts and pr.ts to avoid cross-module coupling. */ import type { CliStatus } from '../git/types.js'; export declare const ITEMS_PER_PAGE = 100; export declare function parseJson(raw: string, context: string): T; /** * Check if `glab` CLI is available and authenticated. * * When `cwd` is provided, the hostname of the `origin` remote is extracted * and `glab auth status --hostname ` is used so that only the * target host's authentication state is evaluated (not all configured hosts). */ export declare function checkGlabCli(cwd: string): CliStatus; /** * Fetch all pages from a GitLab API endpoint via `glab api`. * * Follows the API pagination link header until no next page remains. */ export declare function fetchAllPages(endpoint: string, perPage: number, context: string, cwd: string): T[]; //# sourceMappingURL=utils.d.ts.map