declare module '@react-native-cookies/cookies' { export interface Cookie { name: string; value: string; path?: string; domain?: string; version?: string; expires?: string; secure?: boolean; httpOnly?: boolean; } export interface Cookies { [key: string]: Cookie; } export interface CookieManagerStatic { set(url: string, cookie: Cookie, useWebKit?: boolean): Promise; setFromResponse(url: string, cookie: string): Promise; get(url: string, useWebKit?: boolean): Promise; getFromResponse(url: string): Promise; clearAll(useWebKit?: boolean): Promise; // Android only flush(): Promise; removeSessionCookies(): Promise; // iOS only getAll(useWebKit?: boolean): Promise; clearByName( url: string, name: string, useWebKit?: boolean, ): Promise; } const CookieManager: CookieManagerStatic; export default CookieManager; }