declare const CODEGRAPH_PACKAGE_NAME = "@colbymchenry/codegraph"; declare const CODEGRAPH_PACKAGE_VERSION = "0.7.10"; declare const CODEGRAPH_EXECUTABLE: string; declare const ALLOWED_SUBCOMMANDS: readonly ["status", "init", "index", "query", "files", "context", "affected"]; type CodegraphSubcommand = (typeof ALLOWED_SUBCOMMANDS)[number]; type BaseCodegraphInvocationOptions = { subcommand: CodegraphSubcommand; project: string; search?: string; files?: string[]; json?: boolean; quiet?: boolean; yes?: boolean; force?: boolean; limit?: number; maxDepth?: number; }; type ContextCodegraphInvocationOptions = Omit & { subcommand: 'context'; task: string; }; type NonContextCodegraphInvocationOptions = BaseCodegraphInvocationOptions & { subcommand: Exclude; task?: never; }; export type CodegraphInvocationOptions = ContextCodegraphInvocationOptions | NonContextCodegraphInvocationOptions; export type CodegraphInvocation = { executable: typeof CODEGRAPH_EXECUTABLE; args: string[]; cwd: string; packageName: typeof CODEGRAPH_PACKAGE_NAME; packageVersion: typeof CODEGRAPH_PACKAGE_VERSION; subcommand: CodegraphSubcommand; }; export type CodegraphExecutionResult = { exitCode: number | null; stdout: string; stderr: string; }; export type CodegraphProcessRunner = (invocation: CodegraphInvocation) => Promise; export declare function createCodegraphInvocation(options: CodegraphInvocationOptions): CodegraphInvocation; export declare function executeCodegraphInvocation(invocation: CodegraphInvocation, runner?: CodegraphProcessRunner): Promise; export {};