import { Cookie, CookieParseOptions, CookieSerializeOptions, } from "@remix-run/server-runtime"; import type { z } from "zod"; export interface TypedCookie extends Cookie { isTyped: true; parse( cookieHeader: string | null, options?: CookieParseOptions ): Promise | null>; serialize( value: z.infer, options?: CookieSerializeOptions ): Promise; } export declare function createTypedCookie({ cookie, schema, }: { cookie: Cookie; schema: Schema; }): TypedCookie; /** * Returns true if an object is a Remix Utils Typed Cookie container. * * @see https://github.com/sergiodxa/remix-utils#typed-cookies */ export declare function isTypedCookie( value: unknown ): value is TypedCookie;