UNPKG

443 BTypeScriptView Raw
1import { Channel, Listener } from '@storybook/channels';
2import { ModuleFn } from '../index';
3export interface SubAPI {
4 getChannel: () => Channel;
5 on: (type: string, cb: Listener) => () => void;
6 off: (type: string, cb: Listener) => void;
7 emit: (type: string, ...args: any[]) => void;
8 once: (type: string, cb: Listener) => void;
9 collapseAll: () => void;
10 expandAll: () => void;
11}
12export declare const init: ModuleFn;