import { LinearClient } from "@linear/sdk"; declare const LINEAR_API_KEY_SOURCES: readonly ["GROUNDCREW_LINEAR_API_KEY", "LINEAR_API_KEY"]; export type LinearApiKeySource = (typeof LINEAR_API_KEY_SOURCES)[number]; export interface ResolvedLinearApiKey { value: string; source: LinearApiKeySource; } export declare function resolveLinearApiKey(): ResolvedLinearApiKey | undefined; export declare function getLinearClient(): LinearClient; /** * Returns a zero-arg getter that lazily constructs (and caches) a Linear * client on first call. Used by CLI entry points that may not need the * client at all (e.g. `--no-linear`), so we avoid blowing up on a missing * API key when no Linear call is actually made. The factory is taken as a * parameter (rather than calling `getLinearClient` directly) so callers can * pass their own module-level import of `getLinearClient` — that binding * respects `vi.mock` intercepts, whereas an intra-module reference would * not. */ export declare function lazyLinearClient(factory: () => LinearClient): () => LinearClient; export {}; //# sourceMappingURL=client.d.ts.map