import type { SourceSpan } from '@shapeshift-labs/frontier-lang-kernel'; import type{NativeProjectSymbolGraphCompilerIndexSignatureRecord}from'./native-project-compiler-index-signature.js'; import type{NativeProjectSymbolGraphCompilerComputedEnumRuntimeValueProof,NativeProjectSymbolGraphCompilerEnumMemberRecord,NativeProjectSymbolGraphCompilerEnumRuntimeShapeProof}from'./native-project-compiler-enum-proof.js'; import type{NativeProjectSymbolGraphCompilerClassMemberShapeProof,NativeProjectSymbolGraphCompilerClassPrivateAccessorRuntimeProof}from'./native-project-compiler-class-member-runtime-proof.js'; export interface NativeProjectSymbolGraphCompilerSymbolRecord { readonly id: string; readonly symbolId: string; readonly sourceDocumentId?: string; readonly sourcePath?: string; readonly sourceHash?: string; readonly symbolName?: string; readonly symbolKind?: string; readonly identityHash?: string; readonly localName?: string; readonly targetName?: string; readonly fullyQualifiedName?: string; readonly flags?: number; readonly targetFlags?: number; readonly declarations?: number; readonly aliased?: boolean; readonly publicContract?: boolean; readonly factId?: string; readonly evidenceIds?: readonly string[]; } export interface NativeProjectSymbolGraphCompilerTypeParameterRecord { readonly name?: string; readonly ordinal?: number; readonly typeText?: string; readonly constraintTypeText?: string; readonly defaultTypeText?: string; readonly flags?: number; readonly hasConstraint?: boolean; readonly hasDefault?: boolean; readonly variance?: 'in' | 'out' | 'in out' | string; } export interface NativeProjectSymbolGraphCompilerSignatureParameterRecord { readonly name?: string; readonly typeText?: string; readonly flags?: number; readonly optional?: boolean; } export interface NativeProjectSymbolGraphCompilerSignatureRecord { readonly signatureText?: string; readonly returnTypeText?: string; readonly parameters?: readonly NativeProjectSymbolGraphCompilerSignatureParameterRecord[]; } export interface NativeProjectSymbolGraphCompilerClassHeritageRecord { readonly kind?: 'extends' | 'implements' | string; readonly syntaxKind?: string; readonly clauseOrdinal?: number; readonly ordinal?: number; readonly expressionText?: string; readonly typeText?: string; readonly typeArguments?: readonly string[]; } export interface NativeProjectSymbolGraphCompilerConstructorParameterRecord { readonly name?: string; readonly ordinal?: number; readonly typeText?: string; readonly optional?: boolean; readonly rest?: boolean; readonly accessibility?: 'public' | 'private' | 'protected' | string; readonly parameterProperty?: boolean; } export interface NativeProjectSymbolGraphCompilerConstructorRecord { readonly ordinal?: number; readonly signatureText?: string; readonly accessibility?: 'public' | 'private' | 'protected' | string; readonly parameterCount?: number; readonly parameters?: readonly NativeProjectSymbolGraphCompilerConstructorParameterRecord[]; } export interface NativeProjectSymbolGraphCompilerClassMemberRecord { readonly kind?: string; readonly syntaxKind?: string; readonly name?: string; readonly ordinal?: number; readonly static?: boolean; readonly readonly?: boolean; readonly accessibility?: string; readonly privateIdentifier?: boolean; readonly accessorField?: boolean; readonly typeText?: string; readonly signatureText?: string; } export interface NativeProjectSymbolGraphCompilerPropertyRecord { readonly name?: string; readonly typeText?: string; readonly flags?: number; readonly optional?: boolean; readonly readonly?: boolean; readonly declarations?: number; } export interface NativeProjectSymbolGraphCompilerAdvancedTypeShapeRecord { readonly kind: string; readonly syntaxKind?: string; readonly nodeText?: string; readonly typeText?: string; readonly checkTypeText?: string; readonly extendsTypeText?: string; readonly trueTypeText?: string; readonly falseTypeText?: string; readonly mappedConstraintTypeText?: string; readonly mappedValueTypeText?: string; readonly objectTypeText?: string; readonly indexTypeText?: string; readonly keyofTargetTypeText?: string; readonly templateHeadText?: string; readonly templateSpanCount?: number; readonly templateSpanTexts?: readonly string[]; readonly templateSpanTypeTexts?: readonly string[]; readonly templateLiteralTexts?: readonly string[]; readonly typeParameterText?: string; readonly typeParameterName?: string; readonly constraintTypeText?: string; } export interface NativeProjectSymbolGraphCompilerTypeInferenceSyntaxRecord { readonly kind: 'satisfies-expression' | 'as-const-assertion' | 'const-type-parameter' | string; readonly syntaxKind?: string; readonly nodeText?: string; readonly expressionText?: string; readonly expressionTypeText?: string; readonly typeText?: string; readonly constraintTypeText?: string; readonly defaultTypeText?: string; readonly name?: string; } export interface NativeProjectSymbolGraphCompilerTypeInferenceSyntaxProof { readonly kind: 'typescript-checker-public-api-type-inference-syntax-evidence' | string; readonly status: 'passed' | 'failed' | string; readonly proofLevel?: string; readonly checkerInvariant?: string; readonly requiredSignals?: readonly string[]; readonly missingSignals?: readonly string[]; readonly reasonCodes?: readonly string[]; readonly sourcePath?: string; readonly sourceHash?: string; readonly sourceBoundPublicApi?: boolean; readonly typeInferenceSyntaxHash?: string; readonly typeInferenceSyntaxCount?: number; readonly satisfiesExpressionCount?: number; readonly asConstAssertionCount?: number; readonly constTypeParameterCount?: number; readonly autoMergeClaim: false; readonly semanticEquivalenceClaim: false; } export interface NativeProjectSymbolGraphCompilerTypeEquivalenceProof { readonly kind: string; readonly status: 'passed' | 'failed' | string; readonly proofLevel?: string; readonly checkerInvariant?: string; readonly requiredSignals?: readonly string[]; readonly missingSignals?: readonly string[]; readonly unsupportedSignals?: readonly string[]; readonly reasonCodes?: readonly string[]; readonly signatureSetHash?: string; readonly typeParameterSetHash?: string; readonly propertySetHash?: string; readonly constructorSetHash?: string; readonly classHeritageHash?: string; readonly privateClassMemberSetHash?: string; readonly accessorFieldSetHash?: string; readonly enumRuntimeShapeHash?: string; readonly enumEmittedRuntimeShapeHash?: string; readonly computedEnumRuntimeValueHash?: string; readonly computedEnumRuntimeValueProof?: NativeProjectSymbolGraphCompilerComputedEnumRuntimeValueProof; readonly conditionalTypeSetHash?: string; readonly indexedAccessTypeSetHash?: string; readonly mappedTypeSetHash?: string; readonly keyofTypeOperatorSetHash?: string; readonly templateLiteralTypeSetHash?: string; readonly inferTypeSetHash?: string; readonly apiSignatureHash?: string; readonly compilerSymbolIdentityHash?: string; readonly typeIdentityHash?: string; readonly callSignatureCount?: number; readonly constructSignatureCount?: number; readonly overloadSignatureCount?: number; readonly declarationCount?: number; readonly typeParameterCount?: number; readonly typeParameterDefaultCount?: number; readonly typeParameterConstraintCount?: number; readonly propertyCount?: number; readonly propertyOptionalCount?: number; readonly propertyReadonlyCount?: number; readonly constructorSignatureCount?: number; readonly classHeritageCount?: number; readonly privateClassMemberCount?: number; readonly accessorFieldCount?: number; readonly enumMemberCount?: number; readonly enumComputedMemberCount?: number; readonly advancedTypeShapeCount?: number; readonly conditionalTypeCount?: number; readonly mappedTypeCount?: number; readonly indexedAccessTypeCount?: number; readonly keyofTypeOperatorCount?: number; readonly templateLiteralTypeCount?: number; readonly inferTypeCount?: number; readonly evidenceIds?: readonly string[]; readonly autoMergeClaim: false; readonly semanticEquivalenceClaim: false; } export interface NativeProjectSymbolGraphCompilerTypeRecord { readonly id: string; readonly symbolId: string; readonly sourceDocumentId?: string; readonly sourcePath?: string; readonly sourceHash?: string; readonly symbolName?: string; readonly symbolKind?: string; readonly compilerSymbolIdentityHash?: string; readonly fullyQualifiedName?: string; readonly localName?: string; readonly declarationCount?: number; readonly identityHash?: string; readonly apiSignatureHash?: string; readonly typeText?: string; readonly apparentTypeText?: string; readonly callSignatureCount?: number; readonly constructSignatureCount?: number; readonly overloadSignatureCount?: number; readonly typeParameterCount?: number; readonly typeParameterDefaultCount?: number; readonly typeParameterConstraintCount?: number; readonly propertyCount?: number; readonly propertyOptionalCount?: number; readonly propertyReadonlyCount?: number; readonly indexSignatureCount?: number; readonly constructorSignatureCount?: number; readonly classHeritageCount?: number; readonly privateClassMemberCount?: number; readonly privateClassMemberShapeHash?: string; readonly privateClassMembers?: readonly NativeProjectSymbolGraphCompilerClassMemberRecord[]; readonly accessorFieldCount?: number; readonly accessorFieldShapeHash?: string; readonly accessorFieldMembers?: readonly NativeProjectSymbolGraphCompilerClassMemberRecord[]; readonly classMemberShapeProof?: NativeProjectSymbolGraphCompilerClassMemberShapeProof; readonly classPrivateAccessorRuntimeHash?: string; readonly classPrivateAccessorRuntimeProof?: NativeProjectSymbolGraphCompilerClassPrivateAccessorRuntimeProof; readonly classPrivateAccessorRuntimeProofReasonCodes?: readonly string[]; readonly enumKind?: string; readonly constEnum?: boolean; readonly declareEnum?: boolean; readonly enumDeclarationCount?: number; readonly enumMemberCount?: number; readonly enumNumericMemberCount?: number; readonly enumStringMemberCount?: number; readonly enumAutoMemberCount?: number; readonly enumComputedMemberCount?: number; readonly enumRuntimeShapeHash?: string; readonly enumEmittedRuntimeShapeHash?: string; readonly enumMembers?: readonly NativeProjectSymbolGraphCompilerEnumMemberRecord[]; readonly enumRuntimeShapeProof?: NativeProjectSymbolGraphCompilerEnumRuntimeShapeProof; readonly advancedTypeShapeCount?: number; readonly advancedTypeShapeKinds?: readonly string[]; readonly conditionalTypeCount?: number; readonly mappedTypeCount?: number; readonly indexedAccessTypeCount?: number; readonly keyofTypeOperatorCount?: number; readonly templateLiteralTypeCount?: number; readonly inferTypeCount?: number; readonly advancedTypeShapes?: readonly NativeProjectSymbolGraphCompilerAdvancedTypeShapeRecord[]; readonly typeInferenceSyntaxCount?: number; readonly typeInferenceSyntaxKinds?: readonly string[]; readonly satisfiesExpressionCount?: number; readonly asConstAssertionCount?: number; readonly constTypeParameterCount?: number; readonly typeInferenceSyntaxHash?: string; readonly typeInferenceSyntax?: readonly NativeProjectSymbolGraphCompilerTypeInferenceSyntaxRecord[]; readonly typeInferenceSyntaxProof?: NativeProjectSymbolGraphCompilerTypeInferenceSyntaxProof; readonly typeEquivalenceStatus?: string; readonly typeEquivalenceReasonCodes?: readonly string[]; readonly typeEquivalenceSignatureSetHash?: string; readonly typeEquivalenceTypeParameterSetHash?: string; readonly typeEquivalencePropertySetHash?: string; readonly typeEquivalenceIndexSignatureSetHash?: string; readonly typeEquivalenceConstructorSetHash?: string; readonly typeEquivalenceClassHeritageHash?: string; readonly typeEquivalencePrivateClassMemberSetHash?: string; readonly typeEquivalenceAccessorFieldSetHash?: string; readonly typeEquivalenceEnumRuntimeShapeHash?: string; readonly typeEquivalenceEnumEmittedRuntimeShapeHash?: string; readonly typeEquivalenceConditionalTypeSetHash?: string; readonly typeEquivalenceIndexedAccessTypeSetHash?: string; readonly typeEquivalenceMappedTypeSetHash?: string; readonly typeEquivalenceKeyofTypeOperatorSetHash?: string; readonly typeEquivalenceTemplateLiteralTypeSetHash?: string; readonly typeEquivalenceInferTypeSetHash?: string; readonly typeEquivalenceProof?: NativeProjectSymbolGraphCompilerTypeEquivalenceProof; readonly typeEquivalenceCheckerEvidence?: unknown; readonly typeParameters?: readonly NativeProjectSymbolGraphCompilerTypeParameterRecord[]; readonly properties?: readonly NativeProjectSymbolGraphCompilerPropertyRecord[]; readonly indexSignatures?: readonly NativeProjectSymbolGraphCompilerIndexSignatureRecord[]; readonly callSignatures?: readonly NativeProjectSymbolGraphCompilerSignatureRecord[]; readonly constructSignatures?: readonly NativeProjectSymbolGraphCompilerSignatureRecord[]; readonly constructorSignatures?: readonly NativeProjectSymbolGraphCompilerConstructorRecord[]; readonly classHeritage?: readonly NativeProjectSymbolGraphCompilerClassHeritageRecord[]; readonly flags?: number; readonly objectFlags?: number; readonly intrinsicName?: string; readonly publicContract?: boolean; readonly factId?: string; readonly evidenceIds?: readonly string[]; } export interface NativeProjectRuntimeOrderControlRecord { readonly kind?: 'branch' | 'loop' | 'exception' | string; readonly line?: number; readonly text?: string; } export interface NativeProjectRuntimeOrderShortCircuitRecord { readonly kind?: 'short-circuit' | string; readonly operators?: readonly string[]; readonly guardText?: string; } export interface NativeProjectRuntimeOrderAwaitRecord { readonly kind?: 'await' | string; readonly ordinal?: number; readonly text?: string; } export interface NativeProjectRuntimeOrderOptionalChainRecord { readonly kind?: 'optional-chain' | 'optional-call' | string; readonly ordinal?: number; readonly text?: string; } export interface NativeProjectRuntimeOrderConditionalExpressionRecord { readonly kind?: 'conditional-expression' | string; readonly branch?: 'consequent' | 'alternate' | string; readonly guardText?: string; readonly text?: string; readonly questionColumn?: number; readonly colonColumn?: number; } export interface NativeProjectRuntimeOrderThrowRecord { readonly kind?: 'throw' | string; readonly text?: string; readonly expressionText?: string; readonly throwColumn?: number; readonly regionWithinThrow?: boolean; } export interface NativeProjectRuntimeOrderExitRecord { readonly kind?: 'return' | 'yield' | string; readonly line?: number; readonly delegated?: boolean; readonly text?: string; readonly expressionText?: string; } export interface NativeProjectRuntimeOrderControlTransferRecord { readonly kind?: 'control-transfer' | string; readonly transferKind?: 'break' | 'continue' | string; readonly line?: number; readonly labelText?: string; readonly labelLine?: number; readonly labelTargetLine?: number; readonly labelTargetKind?: 'loop' | 'switch' | 'block' | 'statement' | string; readonly labelTargetText?: string; readonly text?: string; } export interface NativeProjectRuntimeOrderLoopIterationRecord { readonly kind?: 'loop-iteration' | string; readonly loopKind?: 'for' | 'for-of' | 'for-await-of' | 'for-in' | 'while' | 'do' | string; readonly loopLine?: number; readonly loopText?: string; readonly iteratorText?: string; readonly iterableText?: string; readonly initializerText?: string; readonly conditionText?: string; readonly updateText?: string; } export interface NativeProjectRuntimeOrderSwitchDispatchRecord { readonly kind?: 'switch-dispatch' | string; readonly switchLine?: number; readonly switchText?: string; readonly discriminantText?: string; readonly caseLine?: number; readonly caseText?: string; readonly caseKind?: 'case' | 'default' | string; readonly caseOrdinal?: number; readonly previousCaseLine?: number; readonly previousCaseText?: string; readonly previousCaseKind?: 'case' | 'default' | string; readonly previousCaseOrdinal?: number; readonly previousCaseCompletionKind?: 'break' | 'continue' | 'return' | 'throw' | string; readonly fallthroughFromPrevious?: boolean; } export interface NativeProjectRuntimeOrderTryCatchRecord { readonly kind?: 'catch-handler' | 'try-catch' | string; readonly line?: number; readonly text?: string; readonly tryLine?: number; readonly catchLine?: number; readonly catchText?: string; readonly completion?: string; } export interface NativeProjectRuntimeOrderTryFinallyRecord { readonly kind?: 'finalizer' | 'try-finally' | string; readonly line?: number; readonly text?: string; readonly tryLine?: number; readonly finallyLine?: number; readonly finalizerText?: string; readonly completion?: string; readonly enclosingLoop?: { readonly line?: number; readonly text?: string; }; } export interface NativeProjectRuntimeOrderImportMetaRecord { readonly kind?: 'import-meta' | string; readonly ordinal?: number; readonly text?: string; readonly memberName?: string; readonly memberPath?: readonly string[]; } export interface NativeProjectRuntimeOrderClassStaticBlockRecord { readonly kind?: 'class-static-block' | string; readonly className?: string; readonly ordinal?: number; readonly line?: number; readonly statementCount?: number; readonly text?: string; } export interface NativeProjectRuntimeOrderEvidence { readonly schema?: 'frontier.lang.runtimeOrderEvidence.v1' | string; readonly source?: 'lexical-source-scan' | string; readonly subjectId?: string; readonly runtimeScope?: 'module' | 'class-static-initialization' | string; readonly topLevelAwait?: boolean; readonly hostContext?: 'import.meta' | string; readonly importMetaHostContext?: readonly NativeProjectRuntimeOrderImportMetaRecord[]; readonly importMetaMemberNames?: readonly string[]; readonly classStaticBlockOrder?: readonly NativeProjectRuntimeOrderClassStaticBlockRecord[]; readonly regionKind?: string; readonly runtimeKinds?: readonly string[]; readonly line?: number; readonly runtimeOrderIndex?: number; readonly previousRegionKind?: string; readonly previousRuntimeKind?: string; readonly previousRuntimeKinds?: readonly string[]; readonly branchOrder?: readonly NativeProjectRuntimeOrderControlRecord[]; readonly loopOrder?: readonly NativeProjectRuntimeOrderControlRecord[]; readonly sameLineControlFlow?: readonly NativeProjectRuntimeOrderControlRecord[]; readonly sameLineShortCircuit?: readonly NativeProjectRuntimeOrderShortCircuitRecord[]; readonly sameLineAwait?: boolean; readonly sameLineAwaitOrder?: readonly NativeProjectRuntimeOrderAwaitRecord[]; readonly sameLineOptionalChain?: readonly NativeProjectRuntimeOrderOptionalChainRecord[]; readonly sameLineConditionalExpression?: readonly NativeProjectRuntimeOrderConditionalExpressionRecord[]; readonly sameLineThrow?: boolean; readonly sameLineThrowOrder?: readonly NativeProjectRuntimeOrderThrowRecord[]; readonly enclosingControlFlow?: readonly NativeProjectRuntimeOrderControlRecord[]; readonly controlTransferOrder?: readonly NativeProjectRuntimeOrderControlTransferRecord[]; readonly exitOrder?: readonly NativeProjectRuntimeOrderExitRecord[]; readonly loopIterationOrder?: readonly NativeProjectRuntimeOrderLoopIterationRecord[]; readonly switchDispatchOrder?: readonly NativeProjectRuntimeOrderSwitchDispatchRecord[]; readonly tryCatchOrder?: readonly NativeProjectRuntimeOrderTryCatchRecord[]; readonly tryFinallyOrder?: readonly NativeProjectRuntimeOrderTryFinallyRecord[]; } export interface NativeProjectSymbolGraphRuntimeRegionRecord { readonly id: string; readonly key?: string; readonly regionKind?: string; readonly runtimeKind?: string; readonly runtimeKinds?: readonly string[]; readonly sourcePath?: string; readonly sourceHash?: string; readonly sourceSpan?: SourceSpan; readonly precision?: string; readonly spanKind?: string; readonly symbolId?: string; readonly symbolName?: string; readonly symbolKind?: string; readonly line?: number; readonly ordinal?: number; readonly runtimeOrderEvidence?: NativeProjectRuntimeOrderEvidence; readonly signatureHash?: string; readonly publicContract?: boolean; readonly factIds?: readonly string[]; readonly evidenceIds?: readonly string[]; } export interface NativeProjectSymbolGraphScopeBindingRecord { readonly id: string; readonly name: string; readonly bindingKind?: string; readonly namespaces?: readonly string[]; readonly sourcePath?: string; readonly sourceHash?: string; readonly sourceSpan?: SourceSpan; readonly start?: number; readonly end?: number; readonly depth?: number; readonly ordinal?: number; readonly scopeEvidenceSource?: string; readonly scopeEvidenceKind?: string; readonly scopeType?: string; readonly definitionType?: string; readonly externalBindingId?: string; readonly evidenceIds?: readonly string[]; readonly publicContract?: boolean; readonly publicOwnerName?: string; readonly referenceCount?: number; readonly closureReferenceCount?: number; readonly signatureHash?: string; readonly useHash?: string; readonly localUseHash?: string; readonly resolvedUseHash?: string; readonly publicOwnerUseHash?: string; readonly closureUseHash?: string; readonly closureCaptureHash?: string; readonly aliasHash?: string; readonly importAlias?: boolean; readonly moduleSpecifier?: string; readonly importedName?: string; readonly localName?: string; readonly importKind?: string; readonly isTypeOnly?: boolean; readonly resolvedSourcePath?: string; readonly originSourcePath?: string; readonly resolvedExportName?: string; readonly originExportedName?: string; readonly originSymbolId?: string; readonly targetDocumentId?: string; readonly resolvedBindingId?: string; readonly resolvedBindingName?: string; readonly resolvedBindingKind?: string; readonly resolvedBindingSignatureHash?: string; readonly resolvedBindingUseHash?: string; readonly resolvedPublicOwnerName?: string; readonly exportedNames?: readonly string[]; readonly reExportedNames?: readonly string[]; } export interface NativeProjectSymbolGraphScopeReferenceRecord { readonly id: string; readonly name: string; readonly namespace?: string; readonly namespaces?: readonly string[]; readonly sourcePath?: string; readonly sourceHash?: string; readonly sourceSpan?: SourceSpan; readonly start?: number; readonly end?: number; readonly depth?: number; readonly scopeEvidenceSource?: string; readonly scopeEvidenceKind?: string; readonly scopeType?: string; readonly referenceKind?: string; readonly receiverKind?: 'this' | 'super' | string; readonly memberName?: string; readonly memberStart?: number; readonly memberEnd?: number; readonly memberComputed?: boolean; readonly memberOptional?: boolean; readonly writeOperation?: string; readonly templateLiteralInterpolation?: boolean; readonly templateExpressionStart?: number; readonly templateExpressionEnd?: number; readonly templateExpressionHash?: string; readonly evidenceIds?: readonly string[]; readonly bindingId?: string; readonly bindingName?: string; readonly bindingKind?: string; readonly bindingOrdinal?: number; readonly closure?: boolean; readonly closureDepthDelta?: number; readonly closureBindingDepth?: number; readonly closureOwnerName?: string; readonly closureCaptureHash?: string; readonly publicContract?: boolean; readonly publicOwnerName?: string; readonly status?: string; readonly reasonCodes?: readonly string[]; readonly signatureHash?: string; readonly importAlias?: boolean; readonly moduleSpecifier?: string; readonly importedName?: string; readonly resolvedSourcePath?: string; readonly originSourcePath?: string; readonly resolvedExportName?: string; readonly resolvedBindingId?: string; readonly resolvedBindingName?: string; readonly resolvedBindingUseHash?: string; readonly resolvedUseHash?: string; }