import type { ServiceInitializer, Service } from "./registry";
export type ServiceGetter<T extends Service> = () => T;
/**
 * Returns a getter that returns the service registered for the given initializer.
 *
 * If no service is registered, it will first register the service using the given initializer.
 */
export declare function useService<T extends Service>(initializer: ServiceInitializer<T>): ServiceGetter<T>;
