export type Message = {
    type: string;
    payload?: any;
    state?: any;
};
declare type Awaited<T> = T extends Promise<infer V> ? V : T;