mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
18 lines
846 B
TypeScript
18 lines
846 B
TypeScript
|
import { Cookie, CookieChangeListener, CookieGetOptions, CookieParseOptions, CookieSetOptions } from './types';
|
||
|
export default class Cookies {
|
||
|
private cookies;
|
||
|
private changeListeners;
|
||
|
private HAS_DOCUMENT_COOKIE;
|
||
|
constructor(cookies?: string | object | null, options?: CookieParseOptions);
|
||
|
private _updateBrowserValues;
|
||
|
private _emitChange;
|
||
|
get(name: string, options?: CookieGetOptions): any;
|
||
|
get<T>(name: string, options?: CookieGetOptions): T;
|
||
|
getAll(options?: CookieGetOptions): any;
|
||
|
getAll<T>(options?: CookieGetOptions): T;
|
||
|
set(name: string, value: Cookie, options?: CookieSetOptions): void;
|
||
|
remove(name: string, options?: CookieSetOptions): void;
|
||
|
addChangeListener(callback: CookieChangeListener): void;
|
||
|
removeChangeListener(callback: CookieChangeListener): void;
|
||
|
}
|