RedisChatMessageHistoryInput: {
    client?: any;
    config?: RedisClientOptions;
    sessionId: string;
    sessionTTL?: number;
}

Install and import from the "@langchain/redis" integration package instead. Type for the input to the RedisChatMessageHistory constructor.