import React from 'react'; export interface ToggleAnythingProps { keys: Array; selectedKey?: string; children: (...arr: Array) => React.ReactNode; onChange?: (event: Event, key: string) => void; } export interface ToggleAnythingState { selectedKey: string; } export interface AnythingKey { active: boolean; key: string; onClick: (event: Event) => void; } export default class ToggleAnything extends React.Component { static defaultProps: Partial; readonly state: { selectedKey: string; }; render(): React.ReactNode; }