/** * Service container for the Lime CRM platform */ export interface LimeWebComponentPlatform { type: 'LimeCRMWebClient' | 'LimeCRMDesktopClient'; /** * Get a service * * @param name the name of the service */ get(name: string): any; /** * Check if a service is currently registered on the platform * * @param name the name of the service */ has(name: string): boolean; /** * Register a service on the platform * * Core platform service names are defined by the enum `PlatformServiceName`. Third parties that wants to register * a service should add a prefix to the service name, e.g. the plugin name. * * @param name the name of the service * @param service the service */ register(name: string, service: any): void; } /** * Core platform service names */ export declare const PlatformServiceName: PlatformServiceNameType; export interface PlatformServiceNameType { /** * @deprecated use the new {@link PlatformServiceName.Navigator} instead */ Route: 'route'; }