import type { ProviderObservation, WorktreeDeliveryConfig, WorkspaceLease } from "./types.js"; /** * Variables the assembled operation declares but never references. GitHub rejects those outright * with variableNotUsed, and the mistake is invisible to a fake that only inspects the query text — * which is how it reached the live API from this repository. Checking the assembled document also * sees interpolated fragments, which no static scan of the source can resolve. */ export declare function unusedGraphqlVariables(query: string): string[]; /** * Runs a GraphQL document through `gh`, sending the whole request as JSON on stdin and refusing to * send a document that declares a variable it never uses. * * The JSON body is not a style choice. `gh`'s `-f` sends every value as a string, and `-F`, despite * its name, converts only scalars: a JSON object passed to it arrives as a string, so an input * object like `$value: ProjectV2FieldValue!` is rejected with "provided invalid value". Numeric * variables have the same problem with `-f`. `--input -` preserves the real JSON types, so variable * types stop depending on which flag a caller happened to pick. */ export declare function graphqlCommandJson(cwd: string, query: string, variables: Record): { ok: boolean; value?: unknown; error?: string; }; export declare function commandJson(cwd: string, command: string, args: string[], input?: string): { ok: boolean; value?: unknown; error?: string; }; export declare function observeProvider(root: string, config: WorktreeDeliveryConfig, observedLeases: WorkspaceLease[], additionalWorkItems?: string[]): ProviderObservation; //# sourceMappingURL=provider.d.ts.map