import { Dispatch } from "react"; import { ComponentType } from "../../../state/context/context"; import { Action } from "./reducer"; import { InitialTextInputState, TextInputState } from "./state"; export type InputHookOptions = { initialState?: InitialTextInputState; focus?: () => void; }; /** * getUseInputState returns a hook that creates and manages state for TextInput, * Textarea, or CodeInput on the Airplane context */ export declare const getUseTextInputState: (componentType: ComponentType.TextInput | ComponentType.Textarea | ComponentType.CodeInput) => (id: string, options?: InputHookOptions) => { state: TextInputState; dispatch: Dispatch; }; export declare const useTextInputState: (id: string, options?: InputHookOptions) => { state: TextInputState; dispatch: Dispatch; }; export declare const useTextareaState: (id: string, options?: InputHookOptions) => { state: TextInputState; dispatch: Dispatch; }; export declare const useCodeInputState: (id: string, options?: InputHookOptions) => { state: TextInputState; dispatch: Dispatch; };