Fix method declaration for export