/** * @opensip-cli/graph — TypeScript language adapter. * * Lands in PR 3 of plan local planning notes * Exposes `typescriptGraphAdapter`, the GraphLanguageAdapter * implementation that wraps the existing TypeScript-specific * walk/discover/edges machinery into the contract surface defined * by `lang-adapter/types.ts`. * * The contract surface is intentionally small (six methods); each * one delegates to the TypeScript-specific implementation and * translates I/O shapes: * * discoverFiles → ./discover.ts:discoverFiles * parseProject → ./parse.ts:parseProject * walkProject → ./walk.ts:walkProgram, with CallSiteRecord * translation (node/sourceFile → nodeRef/sourceFileRef) * resolveCallSites → ./edges.ts:resolveEdgesFromRecords * cacheKey → ./cache-key.ts:cacheKey * ruleHints → starter list of side-effect primitives + the * `isTestFile` predicate previously inlined in walk.ts * * Files outside this subtree are forbidden from importing the * TypeScript compiler API directly; the dep-cruiser rule * `graph-no-typescript-import-outside-lang-typescript` enforces it. */ import type { TsParsed } from './parse.js'; import type { GraphLanguageAdapter } from '@opensip-cli/graph'; export declare const typescriptGraphAdapter: GraphLanguageAdapter; /** * Discovery contract: external adapter packs export `adapter` (the * GraphLanguageAdapter) and `metadata` (a small descriptor used by * the CLI for diagnostics). The CLI bootstrap registers `adapter` into * the adapter registry after a successful `import()`. */ export { typescriptGraphAdapter as adapter }; export declare const metadata: { readonly id: string; readonly displayName: string | undefined; readonly fileExtensions: readonly string[]; }; export type { TsParsed, TypescriptParsedProject } from './parse.js'; export type { TypescriptFastParsedProject } from './parse-fast.js'; export type { EdgeResolver, ResolverContext } from './edge-resolvers/types.js'; export type { InventoryVisitor, VisitorContext } from './inventory-visitors/types.js'; export { isTypescriptTestFile } from './test-file.js'; //# sourceMappingURL=index.d.ts.map