import BridgeInstance from './bridge-instance'; import { AnyTarget } from './helpers'; declare type AnyFunction = (...args: any[]) => any; declare type ExtractFunction = T extends AnyFunction ? T extends (bridge: BridgeInstance, ...args: any[]) => any ? T : never : T extends readonly any[] ? (bridge: BridgeInstance, ...args: T) => R : never; declare type BlindMethod = { server: ExtractFunction; client: ExtractFunction; }; declare type AnyBlindStaticMethodFunction = (bridge: BridgeInstance, ...args: A) => R; export declare type ExtractArgs> = B extends BlindMethod ? ExtractFunction extends AnyBlindStaticMethodFunction ? A : never : never; export declare type ExtractReturn> = B extends BlindMethod ? ExtractFunction extends AnyBlindStaticMethodFunction ? R2 : never : never; export default BlindMethod;