import { type Decorator } from '@storybook/react';
import { type CreateAppOptions } from '../App';
import { type ActivationEvent, type AnyCapability, type PluginContext } from '../core';
export type Provider<C, R> = (context: C) => R;
export type ProviderOrValue<C, R> = Provider<C, R> | R;
export declare const getValue: <C, R>(providerOrValue: ProviderOrValue<C, R>, context: C) => R;
export type WithPluginManagerOptions = CreateAppOptions & {
    capabilities?: ProviderOrValue<PluginContext, AnyCapability[]>;
    fireEvents?: (ActivationEvent | string)[];
};
/**
 * Wraps a story with a plugin manager.
 * NOTE: This builds up and tears down the plugin manager on every render.
 */
export declare const withPluginManager: (options?: WithPluginManagerOptions) => Decorator;
//# sourceMappingURL=withPluginManager.d.ts.map