Build a Custom Cookie Manager with Get, Set, and Delete Support
Create a cookie utility module with methods to set a cookie (with options for expiry, path, domain, secure, sameSite), get a cookie by name, delete a cookie, and list all cookies as a parsed key-value object. Internally, manipulate document.cookie correctly — understanding that assigning to it sets one cookie at a time, not overwrites all. This tests deep knowledge of browser storage, HTTP headers, and security attributes like SameSite and HttpOnly.