/** * Python Language Plugin * * Provides Python-specific AST handling, taint patterns, and framework detection. */ import type { Node as SyntaxNode } from 'web-tree-sitter'; import type { TypeInfo, CallInfo, ImportInfo } from '../../types/index.js'; import type { LanguageNodeTypes, ExtractionContext, FrameworkInfo, TaintSourcePattern, TaintSinkPattern } from '../types.js'; import { BaseLanguagePlugin } from './base.js'; /** * Python language plugin implementation. */ export declare class PythonPlugin extends BaseLanguagePlugin { readonly id: "python"; readonly name = "Python"; readonly extensions: string[]; readonly wasmPath = "tree-sitter-python.wasm"; readonly nodeTypes: LanguageNodeTypes; /** * Detect Python frameworks from imports. */ detectFramework(context: ExtractionContext): FrameworkInfo | undefined; /** * Python taint source patterns. */ getBuiltinSources(): TaintSourcePattern[]; /** * Python taint sink patterns. */ getBuiltinSinks(): TaintSinkPattern[]; /** * Get receiver type from a call expression. */ getReceiverType(node: SyntaxNode, context: ExtractionContext): string | undefined; /** * Check if node is a Python string literal. */ isStringLiteral(node: SyntaxNode): boolean; /** * Get string value from Python string literal. */ getStringValue(node: SyntaxNode): string | undefined; extractTypes(context: ExtractionContext): TypeInfo[]; extractCalls(context: ExtractionContext): CallInfo[]; extractImports(context: ExtractionContext): ImportInfo[]; extractPackage(context: ExtractionContext): string | undefined; } //# sourceMappingURL=python.d.ts.map