import { type Decorator, type StoryContext } from '@storybook/react';
import { type MaybeProvider } from '@dxos/util';
import { type ActivationEvent, Capability, type CapabilityManager } from '../core';
import { type UseAppOptions } from '../ui';
export type WithPluginManagerOptions = UseAppOptions & {
    /** @deprecated */
    capabilities?: MaybeProvider<Capability.Any[], CapabilityManager.CapabilityManager>;
    /** @deprecated */
    fireEvents?: (ActivationEvent.ActivationEvent | string)[];
};
export type WithPluginManagerInitializer<Args = void> = WithPluginManagerOptions | ((context: StoryContext<Args>) => WithPluginManagerOptions);
/**
 * Wraps a story with a plugin manager.
 * NOTE: This builds up and tears down the plugin manager on every render.
 */
export declare const withPluginManager: <Args>(init?: WithPluginManagerInitializer<Args>) => Decorator;
//# sourceMappingURL=withPluginManager.d.ts.map