import { TFunction } from '@sidewinder/contract'; import { Validator } from '@sidewinder/validator'; export interface RegisteredServerMethod { /** The parameter validator */ paramsValidator: Validator; /** The return type validator */ returnValidator: Validator; /** The authorize function */ authorize: Function; /** The callback function */ callback: Function; } /** * A Service method container for a set of methods. This container provides an interface to allow * callers to register schema validated function and execute those function either directly or * via JSON RPC 2.0 protocol. */ export declare class ServiceMethods { #private; constructor(); register(method: string, schema: TFunction, authorize: Function, callback: Function): void; execute(context: unknown, method: string, params: unknown[]): Promise; }