import * as React from "react"; import { IOWidget, Options, Fun } from "../shared/widget"; export interface StringOptions extends Options { readonly_element?: "span" | "p" | "nothing" | "input"; type?: "email" | "text" | "password"; size?: number; focus_to_output?: (_: React.FocusEvent) => o | null; blur_to_output?: (_: React.FocusEvent) => o | null; keydown_to_output?: (_: React.KeyboardEvent) => o | null; on_click?: (_: React.MouseEvent) => o | null; } export interface StringProps { options?: StringOptions; input: string; string_to_output: Fun; on_done: (output: o) => void; } export interface StringState { } export declare class String extends React.Component, StringState> { constructor(props: StringProps, context: any); render(): JSX.Element; } export declare let string_full: (string_to_output: Fun, options?: StringOptions | undefined) => IOWidget; export declare let string: (options?: StringOptions | undefined) => IOWidget;