import * as React from 'react'; export interface EditableTextProps { value?: string; onChange?: (newValue: string) => void; onEnter?: () => void; onTab?: () => void; onEscape?: () => void; editing?: boolean; setEditing?: (editing: boolean) => void; id?: string; } export interface EditableTextState { editing: boolean; value: string; } export default class EditableText extends React.Component { private textInput; constructor(props: EditableTextProps); componentWillReceiveProps(newProps: EditableTextProps): void; setEditing: (editing: boolean) => void; startEditing: () => void; endEditing: () => void; onChange: (caller: React.FormEvent) => void; onButtonPress: (event: React.KeyboardEvent) => void; renderInput: (props: EditableTextProps) => React.JSX.Element; renderText: (props: EditableTextProps) => React.JSX.Element; render(): React.JSX.Element; }