@herd-labs/trails-code-framework
Version:
A package for building Herd-compliant custom Deno scripts used in Herd Trails
7 lines (6 loc) • 712 B
TypeScript
import { z } from "zod";
import { Hono } from "hono";
export declare const EVMAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
export declare const EVMTxHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
export declare const Bytes: (length: number) => z.ZodEffects<z.ZodString, `0x${string}`, string>;
export declare function initializeHerdCodeServer<TInputSchema extends z.ZodObject<any>, TOutputSchema extends z.ZodObject<any>>(inputSchema: TInputSchema, outputSchema: TOutputSchema, fn: ((input: z.infer<TInputSchema>) => z.infer<TOutputSchema>) | ((input: z.infer<TInputSchema>) => Promise<z.infer<TOutputSchema>>)): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;