import { Packet } from '@realmlib/net'; import { Runtime } from '../runtime/runtime'; import { Client } from './client'; import { HookInfo, LoadedLib, ManagedLib } from './lib-info'; /** * A static singleton class used to load libraries and packet hooks. */ export declare class LibraryManager { readonly runtime: Runtime; readonly libStore: Map>; readonly hookStore: Map>>; readonly clientHookStore: Map>; private readonly loadQueue; constructor(runtime: Runtime); /** * Loads the client hooks. */ loadClientHooks(): void; /** * Loads and stores all libraries present in the `plugins` folder. */ loadPlugins(pluginFolder: string): void; loadLib(lib: LoadedLib): boolean; /** * Invokes any packet hook methods which are registered for the given packet type. */ callHooks(packet: Packet, client: Client): void; }