import type { CreateSessionStorageFunction, SessionData, SessionIdStorageStrategy } from "@remix-run/server-runtime"; interface KvClient { exists: (key: string) => Promise; del: (key: string) => Promise; get: (key: string) => Promise; set: (key: string, value: string, opts?: { pxat?: any; nx?: any; }) => Promise; } export interface KvSessionStorageOptions { /** * KV client from the `@vercel/kv` package. */ kv: KvClient; /** * The Cookie used to store the session id on the client, or options used * to automatically create one. */ cookie: SessionIdStorageStrategy["cookie"]; /** * Prefix of the Redis key name used for session data, followed by `:${id}`. * @default "session". */ prefix?: string; } export declare const createKvSessionStorageFactory: (createSessionStorage: CreateSessionStorageFunction) => ({ kv, cookie, prefix, }: KvSessionStorageOptions) => import("@remix-run/server-runtime").SessionStorage; export {};