import { Application, ConfigStore, ServiceProvider as ServiceProviderContract } from '@supercharge/contracts'; type BootCallback = () => Promise | unknown; export declare class ServiceProvider implements ServiceProviderContract { /** * Stores the interla service provider data. */ private readonly meta; /** * Create a new service provider instance. */ constructor(app: Application); /** * Returns the application instance. */ app(): Application; /** * Returns the config instance. */ config(): ConfigStore; /** * Register application services to the container. */ register(): void; /** * Boot application services. */ boot(): Promise; /** * Stop application services. */ shutdown(): Promise; /** * Register a booting callback that runs before the `boot` method is called. */ booting(callback: BootCallback): this; /** * Returns the registered booting callbacks. */ bootingCallbacks(): BootCallback[]; /** * Register a booted callback that runs after the `boot` method was called. */ booted(callback: BootCallback): this; /** * Returns the registered booted callbacks. */ bootedCallbacks(): BootCallback[]; /** * Call the registered booting callbacks. */ callBootingCallbacks(): Promise; /** * Call the registered booted callbacks. */ callBootedCallbacks(): Promise; /** * Run the given booting/booted provider `callbacks`. */ private runCallbacks; /** * Merge the content of the configuration file located at the * given `filePath` with the existing app configuration. */ mergeConfigFrom(path: string, key: string): Promise; } export {};