import type { StandardSchemaV1 } from "@standard-schema/spec"; import { type Cookie, type CookieParseOptions, type CookieSerializeOptions } from "react-router"; export interface TypedCookie extends Cookie { isTyped: true; parse(cookieHeader: string | null, options?: CookieParseOptions): Promise | null>; serialize(value: StandardSchemaV1.InferInput, 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; export declare class ValidationError extends Error { readonly issues: Readonly; name: string; constructor(issues: Readonly); }