/** * Module Registry Utilities * * Utility functions and classes for module registry operations */ export { ModuleCache } from './ModuleCache'; export type { CacheOptions, CacheStats } from './ModuleCache'; export { BrowserEventEmitter, defaultEventEmitter } from './BrowserEventEmitter'; export type { EventListener, EventEmitterInterface } from './BrowserEventEmitter'; export { getPath, getFs, getGlob, initializePlatformModules, preloadBrowserModules, getPlatformInfo, createPlatformError, clearModuleCache } from './platform-modules'; export type { PlatformPath, PlatformFs, PlatformGlob } from './platform-modules'; export { detectEnvironment, loadConditionalModule, loadConditionalModuleSync, getPathSeparator, getCurrentDirectory, isDevelopment, isProduction, isTest, isBrowser, isNode, getEnvironmentName, getPlatformName, createLogger, hasFeature, assertFeature, warnMissingFeature, ENV, FEATURES } from './environment'; export type { EnvironmentInfo } from './environment'; export type { BrowserPath } from './browser-path'; export type { BrowserFileSystem } from './browser-fs'; export type { BrowserGlob } from './browser-glob'; export declare const loadModuleAsync: (modulePath: string) => Promise; export declare const normalizeModuleId: (id: string) => string; export declare const isValidModuleId: (id: string) => boolean; export declare const resolveModulePath: (baseDir: string, moduleId: string) => string; export declare const getModulePackageName: (moduleId: string) => string; export declare const hasPermission: (userPermissions: string[], requiredPermissions: string[]) => boolean; export declare const hasRole: (userRoles: string[], requiredRoles: string[]) => boolean; export declare const filterModulesByPermissions: (modules: T[], userPermissions: string[]) => T[]; export declare const filterModulesByRoles: (modules: T[], userRoles: string[]) => T[]; export declare const sortModulesByPriority: (modules: T[]) => T[]; export declare const sortModulesByName: (modules: T[]) => T[]; export declare const groupModulesByCategory: (modules: T[]) => Record; export declare const validateModuleId: (id: string) => { valid: boolean; error?: string; }; export declare const resolveDependencies: (modules: T[]) => T[]; export declare class ModuleRegistryError extends Error { readonly moduleId?: string | undefined; readonly cause?: Error | undefined; constructor(message: string, moduleId?: string | undefined, cause?: Error | undefined); } export declare class ModuleValidationError extends ModuleRegistryError { readonly validationErrors?: Array<{ field: string; message: string; }> | undefined; constructor(message: string, moduleId?: string, validationErrors?: Array<{ field: string; message: string; }> | undefined); } export declare class ModuleDiscoveryError extends ModuleRegistryError { readonly source?: string | undefined; constructor(message: string, source?: string | undefined, cause?: Error); } export declare const measurePerformance: (operation: () => Promise, label: string) => Promise<{ result: T; duration: number; }>; export declare const debounce: any>(func: T, wait: number) => ((...args: Parameters) => void); export declare const throttle: any>(func: T, limit: number) => ((...args: Parameters) => void); //# sourceMappingURL=index.d.ts.map