okta-mcp-server
Version:
Model Context Protocol (MCP) server for Okta API operations with support for bulk operations and caching
40 lines • 986 B
TypeScript
/**
* Simple dependency injection container for service management
*/
export declare class Container {
private services;
private factories;
private singletons;
/**
* Register a service factory
*/
register<T>(token: string | symbol, factory: () => T, options?: {
singleton?: boolean;
}): void;
/**
* Register a value directly
*/
registerValue<T>(token: string | symbol, value: T): void;
/**
* Resolve a service
*/
resolve<T>(token: string | symbol): T;
/**
* Check if a service is registered
*/
has(token: string | symbol): boolean;
/**
* Clear all services (useful for testing)
*/
clear(): void;
/**
* Create a child container
*/
createChild(): Container;
/**
* Alias for resolve (used by audit handlers)
*/
get<T>(token: string | symbol): T;
}
export type InjectionToken<_T> = string | symbol;
//# sourceMappingURL=container.d.ts.map