/** * Minimal Linear GraphQL client for VINES. * * Two responsibilities: * 1. Mutations during the §3.2 workflow (create parent / child, comment, * transition state). * 2. Reads during §4.2 recovery (fetch issue + list children). * * Uses the built-in `fetch` available in Node ≥20 (the package's engines * floor) — no third-party HTTP lib. */ import type { LinearIssue } from "./types.js"; export declare const LINEAR_GRAPHQL_ENDPOINT = "https://api.linear.app/graphql"; export interface LinearClientOptions { apiKey?: string; timeoutMs?: number; /** Test seam — defaults to the global `fetch`. */ fetchImpl?: typeof globalThis.fetch; } /** * Thin GraphQL wrapper. All methods throw {@link Error} with a descriptive * message on API failure; the message always starts with `"Linear "` so the * CLI can distinguish Linear vs. database failures by prefix. */ export declare class LinearClient { private readonly apiKey; private readonly timeoutMs; private readonly fetchImpl; constructor(opts?: LinearClientOptions); query(query: string, variables?: Record): Promise; createIssue(args: { teamId: string; title: string; description?: string; parentId?: string; stateId?: string; }): Promise; setState(issueId: string, stateId: string): Promise; comment(issueId: string, body: string): Promise; getIssue(identifierOrId: string): Promise; listChildren(parentIdentifierOrId: string): Promise; } //# sourceMappingURL=linear-client.d.ts.map