20 lines
688 B
TypeScript
20 lines
688 B
TypeScript
import { CookieJar } from 'tough-cookie';
|
|
import type { CookieEncryptor, CookieStore, Logger } from '../types';
|
|
interface FileCookieStoreOptions {
|
|
encryptor?: CookieEncryptor;
|
|
logger?: Logger;
|
|
}
|
|
export declare class FileCookieStore implements CookieStore {
|
|
private readonly filePath;
|
|
private readonly options;
|
|
private static readonly sharedJars;
|
|
constructor(filePath: string, options?: FileCookieStoreOptions);
|
|
load(): Promise<CookieJar>;
|
|
save(cookieJar: CookieJar): Promise<void>;
|
|
clear(): Promise<void>;
|
|
private isEncryptedCookieFile;
|
|
private cookieJarFromJson;
|
|
private remember;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=FileCookieStore.d.ts.map
|