import { ServerResponse } from "http"; import { NextApiResponse } from "next"; import { Nullable } from "../../lib/type"; export type SetCookiePayload = { res: NextApiResponse | ServerResponse; value: string; key: string; domain: Nullable; maxAge: number; httpOnly: boolean; secure: boolean; }; export declare function setCookie({ res, value, key, domain, maxAge, httpOnly, secure, }: SetCookiePayload): void; export type RemoveCookiePayload = { res: NextApiResponse | ServerResponse; key: string; }; export declare function removeCookie({ res, key }: RemoveCookiePayload): void; //# sourceMappingURL=cookie.d.ts.map