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

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