UNPKG

denwa-react-shared

Version:
12 lines (11 loc) 510 B
import { GetErrorType } from '../types'; export declare const getCookie: (name: string) => string | null; export declare const setCookie: (name: string, value: string, options?: any) => void; export declare const deleteCookie: (name: string, domain?: string) => void; export declare const getTokenInCookie: ({ baseURL, domain, isRefresh, isNotSecure, getError, }: { baseURL: string; domain: string; isRefresh?: boolean; isNotSecure?: boolean; getError: GetErrorType; }) => Promise<string>;