import type { LuaApi, LuaCodecIo, LuaInteger, LuaName } from './lua-common.ts'; interface JsonCodecOptions extends LuaCodecIo { toInteger?: (n: number) => LuaInteger; maxInteger?: number; fieldName?: (name: string) => LuaName; } /** Redis-compatible cjson.encode/decode/null, shared by both Lua runtimes. */ export declare function createJsonCodec(lua: LuaApi, { pushBytes, readBytes, timedOut, timeoutError, toInteger, maxInteger, fieldName, }: JsonCodecOptions): { pushLibrary: (L: State, pushFunction: (L: State, fn: (L: State) => number) => void) => void; }; export {};