/**
 * @adonisjs/session
 *
 * (c) AdonisJS
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
import type { Connection } from '@adonisjs/redis/types';
import type { SessionStoreContract, SessionData } from '../types.js';
/**
 * File store to read/write session to filesystem
 */
export declare class RedisStore implements SessionStoreContract {
    #private;
    constructor(connection: Connection, age: string | number);
    /**
     * Returns file contents. A new file will be created if it's
     * missing.
     */
    read(sessionId: string): Promise<SessionData | 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>;
}
