UNPKG

@highlite/core

Version:
44 lines (38 loc) 1.76 kB
/*! Copyright (C) 2025 HighLite This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ import { HookManager } from '../managers/highlite/hookManager'; import { ClassInfo, EnumInfo, ClassSignature, EnumSignature } from './types'; export declare class Reflector { private static source; private static ast; private static classes; private static enums; private static classHooks; private static enumHooks; static loadHooksFromSource(source: string): Promise<void>; static loadHooksFromDB(): Promise<void>; private static saveHooks; static hasSavedHooks(): Promise<boolean>; private static extractClasses; private static extractEnums; private static findHooksBySignature; static findClassBySignature(signature: ClassSignature): ClassInfo | undefined; static findEnumBySignature(signature: EnumSignature): EnumInfo | undefined; static getClassHook(name: string): string | undefined; static getEnumHook(name: string): string | undefined; static bindClassHooks(hookManager: HookManager): void; static bindEnumHooks(hookManager: HookManager): void; private static serializeHookMap; private static deserializeHookEntries; }