import { SyntaxNode } from 'web-tree-sitter'; import { HttpApiAnalyser } from '../base/HttpApiAnalyser'; import { MemoizedQuery } from '../base/LanguageProfile'; import { CodeFile, CodeFunction } from '../../codemodel/CodeElement'; import { LanguageIdentifier } from '../../base/common/languages/languages'; import { StructurerProvider } from "../base/StructurerProvider"; import { ApiResource } from "@autodev/worker-core"; export declare class TypeScriptNextjsAnalyser extends HttpApiAnalyser { protected structurer: StructurerProvider; readonly langId: LanguageIdentifier; isApplicable(lang: LanguageIdentifier): boolean; fileFilter: (codeFile: CodeFile) => boolean; protected httpMethodQuery: MemoizedQuery; protected appRouterApiQuery: MemoizedQuery; protected restClientQuery: MemoizedQuery; constructor(); sourceCodeAnalysis(sourceCode: string, filePath: string, workspacePath: string): Promise; analysis(codeFile: CodeFile, workspacePath: string): Promise; protected extractApiUrlFromFilePath(filePath: string): string; protected analyseNextAppRouterApi(codeFile: CodeFile, rootNode: SyntaxNode, apiUrl: string, filePath: string, workspacePath: string): Promise; protected extractAppRouterHttpMethods(rootNode: SyntaxNode): string[]; protected analyseNextApiRoute(codeFile: CodeFile, rootNode: SyntaxNode, apiUrl: string, filePath: string, workspacePath: string): Promise; protected extractSupportedHttpMethods(rootNode: SyntaxNode): string[]; protected findApiClientUsages(rootNode: SyntaxNode, currentFunction: CodeFunction): void; protected cleanStringLiteral(text: string): string; }