@herd-labs/trails-code-framework
Version:
A package for building Herd-compliant custom Deno scripts used in Herd Trails
7 lines (6 loc) • 751 B
TypeScript
import { z } from "zod";
import { Hono } from "hono";
export declare const EVMAddress: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
export declare const EVMTxHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
export declare const Bytes: (length: number) => z.ZodPipe<z.ZodString, z.ZodTransform<`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, "/">;