import type { ExtensionDefinition } from "@stripe/formspec-core"; import * as ts from "typescript"; import { type FormSpecAnalysisFileSnapshot } from "./semantic-protocol.js"; import { type FormSpecPerformanceRecorder } from "./perf-tracing.js"; import { type ExtensionTagSource } from "./tag-registry.js"; /** * Options used when building a serializable, editor-oriented snapshot for a * TypeScript source file. */ export interface BuildFormSpecAnalysisFileSnapshotOptions { readonly checker: ts.TypeChecker; readonly extensions?: readonly ExtensionTagSource[]; readonly extensionDefinitions?: readonly ExtensionDefinition[]; readonly now?: () => Date; readonly performance?: FormSpecPerformanceRecorder; } /** * Builds a transport-safe snapshot of every FormSpec-bearing doc comment in a * source file, including semantic hover/completion context and file-local * diagnostics. */ export declare function buildFormSpecAnalysisFileSnapshot(sourceFile: ts.SourceFile, options: BuildFormSpecAnalysisFileSnapshotOptions): FormSpecAnalysisFileSnapshot; //# sourceMappingURL=file-snapshots.d.ts.map