import * as React from "react"; export var mixin: { dispatch: (eventName: string, ...args: any[]) => boolean; }; export class Component extends React.Component { dispatch: (eventName: string, ...args: any[]) => boolean; } export class Flux { constructor(initalizers: {renderer: Function; initialState?: State; middlewares?: Function[];}); state: State; on: (eventName: string, fn: Function) => void; update(updater: (s?: State) => State | Promise): Promise; subscribe(): void; }