declare module '@sambego/storybook-state/Store' { export type StateObject = { [s: string]: any; }; type Callback = { callback: (state: S) => any; subscription: string; }; export default class Store { state: S; callbacks: Callback[]; constructor (state: S); set (newState: Partial): void; get(key?: K): S[K]; subscribe (callback: Callback['callback']): string; unSubscribe (subscription: string): void; } } declare module '@sambego/storybook-state/State' { /// import Store, { StateObject } from '@sambego/storybook-state/Store'; type RenderFunction = (state: S) => React.ReactNode; interface Props { children: React.ReactNode | RenderFunction; parseState?: (state: S) => S; store: Store; } export default class State< S extends StateObject, StateStore extends Store > extends React.Component> { stateStore: StateStore; state: S; subscription: string; } } declare module '@sambego/storybook-state/StateDecorator' { /// export default function makeDecorator(...args: any): any; } declare module '@sambego/storybook-state' { export { default as State } from '@sambego/storybook-state/State'; export { default as Store } from '@sambego/storybook-state/Store'; export { default as withState, } from '@sambego/storybook-state/StateDecorator'; }