Implement a React component that fetches a JSON payload from a secure HTTP endpoint and renders a text field one character at a time. The component must support configurable typing delay in milliseconds and expose animation controls for start, pause, resume, and reset. Return a component or hook-based implementation that handles loading, fetch failure, timer cleanup, and repeated control actions correctly.
def simulate_typewriter(text, delay, actions):