UNPKG

@shopify/react-network

Version:

A collection of components that allow you to set common HTTP headers from within your React application

19 lines 588 B
import type { CookieSerializeOptions } from 'cookie'; export type CookieValue = { value: string; } & CookieSerializeOptions; export interface Cookie { [key: string]: CookieValue; } export declare class ServerCookieManager { private readonly cookies; constructor(cookies?: Cookie | string); getCookie(name: string): string | undefined; getCookies(): { [x: string]: CookieValue; }; setCookie(name: string, value: string | CookieValue): void; removeCookie(name: string): void; clear(): void; } //# sourceMappingURL=ServerCookieManager.d.ts.map