/** * The Per Request Storage module (PRS) provides an API for storing small * amounts of data that exist only for the duration of a request. * * This APIs primary purpose is to provide a way for filters to share data * with each other, without modifying the Request object. */ import { Value, Object } from '@quenk/noni/lib/data/jsonx'; import { Maybe } from '@quenk/noni/lib/data/maybe'; import { Storage } from './'; /** * PRSStorage class. * * This is used behind the scens to provide the prs api. */ export declare class PRSStorage implements Storage { data: Object; values: Object; constructor(data?: Object); get(key: string): Maybe; getOrElse(key: string, alt: Value): Value; getAll(): Object; exists(key: string): boolean; set(key: string, value: Value): PRSStorage; remove(key: string): PRSStorage; reset(): PRSStorage; }