import axios from 'axios'; import { PbmStats } from "../types/pbm_stats"; import { Button } from "../types/button"; import { LayerKey } from "../types/layer_key"; import { ButtonsSettingType } from "../types/buttons_setting_type"; interface AnalogStickPosition { x: number; y: number; } interface DirPathApiResponse { result: string, root_path: string, } interface SettingPathApiResponse { result: string, setting_path: string, } interface PostApiResponse { result: string, } interface StatsApiResponse { stats: PbmStats, result: string, pid: number | null, } interface PressedButtonsResponse { buttons: Array