import { IAutoload } from 'najs-binding'; import { ContextualFacade } from 'najs-facade'; import { Controller } from '../controller/Controller'; import { FlashRegistry, ISession } from './ISession'; export interface Session extends ISession { } export declare class Session extends ContextualFacade implements ISession, IAutoload { static FlashRegistryKey: string; protected data: Object; constructor(controller: Controller); getClassName(): string; clear(): this; regenerate(): Promise; getFlashRegistry(): FlashRegistry; flash(path: string, value: any): this; reflash(): this; keep(path: string): this; keep(paths: string[]): this; keep(...args: Array): this; isFlashPath(path: string): boolean; get(path: string): T; get(path: string, defaultValue: T): T; }