bpms_site/.svn/pristine/99/99ed9b691b5dba911c564a307345f20d51958b99.svn-base
2025-11-02 16:38:49 +03:30

20 lines
1.1 KiB
Plaintext

import type tsModule from 'typescript/lib/tsserverlibrary';
type TypeScript = typeof import('typescript/lib/tsserverlibrary');
export declare function log(message: string): void;
export declare function init(opts: {
ts: TypeScript;
info: tsModule.server.PluginCreateInfo;
}): void;
export declare function getTs(): typeof tsModule;
export declare function getInfo(): tsModule.server.PluginCreateInfo;
export declare function getTypeChecker(): tsModule.TypeChecker | undefined;
export declare function getSource(fileName: string): tsModule.SourceFile | undefined;
export declare function removeStringQuotes(str: string): string;
export declare const isPositionInsideNode: (position: number, node: tsModule.Node) => boolean;
export declare const isDefaultFunctionExport: (node: tsModule.Node) => node is tsModule.FunctionDeclaration;
export declare const isInsideApp: (filePath: string) => boolean;
export declare const isAppEntryFile: (filePath: string) => boolean;
export declare const isPageFile: (filePath: string) => boolean;
export declare function getIsClientEntry(fileName: string, throwOnInvalidDirective?: boolean): boolean;
export {};