export default function compile(expr: any): { initialState: number; numStates: number; finalState: any; transitions: {}; expression: any; };