import { z } from 'zod'; /** * Shared error handler for all GitHub CLI interactions. * Re-throws [Totem Error] as-is, wraps ZodErrors and ENOENT, and * falls through to a generic message for anything else. */ export declare function handleGhError(err: unknown, context: string): never; /** * Execute a `gh` CLI command that does not return JSON (mutations like close, comment, edit). * Throws on failure with a friendly error message. */ export declare function ghExec(args: string[], cwd: string): void; /** * Shared fetch → JSON.parse → Zod validate utility for all `gh` CLI calls. */ export declare function ghFetchAndParse(args: string[], schema: z.ZodType, context: string, cwd: string): T; //# sourceMappingURL=gh-utils.d.ts.map