import { ActivationContext } from './models/toguru'; import { Toggle } from './models/Toggle'; import { Toggles } from './models/Toggles'; export declare type ToguruClientConfig = { /** * The toguru backend endpoint */ endpoint: string; /** * How often to pull toguru information from the backend. Defaults to 60 secs */ refreshIntervalMs?: number; }; export declare type TogglingApi = { /** * Determine if the toggle is enabled */ isToggleEnabled: (toggle: Toggle) => boolean; /** * List of toggles that are enabled for a given service (special tag) */ togglesForService: (service: string) => Toggles; }; export declare type TogglingApiByActivationContext = (context: ActivationContext) => TogglingApi; declare const _default: (config: ToguruClientConfig) => TogglingApiByActivationContext; export default _default;