/**
 * @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';
/**
 * File driver to read/write session to filesystem
 */
export declare class FileDriver implements SessionDriverContract {
    private config;
    constructor(config: SessionConfig);
    /**
     * Returns complete path to the session file
     */
    private getFilePath;
    /**
     * 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: {
        [key: string]: any;
    }): Promise<void>;
    /**
     * Cleanup session file by removing it
     */
    destroy(sessionId: string): Promise<void>;
    /**
     * Writes the value by reading it from the store
     */
    touch(sessionId: string): Promise<void>;
}
