UNPKG

minauth

Version:

A TypeScript library for building authentication systems on top of the Mina blockchain and other zero-knowledge proofs solutions.

14 lines (13 loc) 569 B
import { Logger } from './logger'; import * as z from 'zod'; export declare class PluginRouter { private logger; private serverUrl; private pluginName; private customRouteMapping?; private constructor(); static initialize(logger: Logger, serverUrl: string, pluginName: string, activePluginsRoute?: string, customRouteMapping?: (s: string) => string): Promise<PluginRouter>; private request; get<T>(pluginRoute: string, schema: z.ZodType<T>): Promise<T>; post<T>(pluginRoute: string, schema: z.ZodType<T>, value: T): Promise<void>; }