1 | import { IODataParser } from "./parsers.js";
|
2 | import { IPnPClientStore } from "@pnp/common";
|
3 | export interface ICachingOptions {
|
4 | expiration?: Date;
|
5 | storeName?: "session" | "local";
|
6 | key: string;
|
7 | }
|
8 | export declare class CachingOptions implements ICachingOptions {
|
9 | key: string;
|
10 | storeName?: "session" | "local";
|
11 | expiration?: Date;
|
12 | constructor(key: string, storeName?: "session" | "local", expiration?: Date);
|
13 | get store(): IPnPClientStore;
|
14 | }
|
15 | export declare class CachingParserWrapper<T> implements IODataParser<T> {
|
16 | parser: IODataParser<T>;
|
17 | cacheOptions: CachingOptions;
|
18 | constructor(parser: IODataParser<T>, cacheOptions: CachingOptions);
|
19 | parse(response: Response): Promise<T>;
|
20 | protected cacheData(data: any): any;
|
21 | }
|
22 | //# sourceMappingURL=caching.d.ts.map |
\ | No newline at end of file |