/**
 * @adonisjs/session
 *
 * (c) Harminder Virk <virk@adonisjs.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/// <reference path="../../adonis-typings/index.d.ts" />
import { SessionDriverContract, SessionConfig } from '@ioc:Adonis/Addons/Session';
import { RedisManagerContract } from '@ioc:Adonis/Addons/Redis';
/**
 * File driver to read/write session to filesystem
 */
export declare class RedisDriver implements SessionDriverContract {
    private config;
    private redis;
    /**
     * Convert milliseconds to seconds
     */
    private ttl;
    constructor(config: SessionConfig, redis: RedisManagerContract);
    /**
     * Returns instance of the redis connection
     */
    private getRedisConnection;
    /**
     * Returns file contents. A new file will be created if it's
     * missing.
     */
    read(sessionId: string): Promise<{
        [key: string]: any;
    } | null>;
    /**
     * Write session values to a file
     */
    write(sessionId: string, values: Object): Promise<void>;
    /**
     * Cleanup session file by removing it
     */
    destroy(sessionId: string): Promise<void>;
    /**
     * Updates the value expiry
     */
    touch(sessionId: string): Promise<void>;
}
