interface subState { messages: any[]; status: { hasWSConnection: boolean; hasFetchedInitialMessages: boolean; previousTimestamp?: number; nextTimestamp?: number; }; } interface State { id?: subState; } export declare function MessagesReducer(state: State, action: { type: string; payload: any; }): State; export {};