type MaybeReturnType<T> = T extends (...args: any) => any ? ReturnType<T> : T;
declare function callOrReturn<T>(value: T, context?: any, ...props: any[]): MaybeReturnType<T>;

export { type MaybeReturnType, callOrReturn };
